#130 💎 Binding in Ruby & RailsConf Hack Spaces

Happy Wednesday!

Here is issue #130 of our newsletter, which offers news and the best tools for your current or future Rails projects...

1. 🤹 Tech debt dragging your team down? At FastRuby.io, we understand the challenges of juggling product development with Rails upgrades and maintenance. That’s why we created Bonsai, a service designed to help teams like yours stay current, secure, and focused on what matters most. We’re proud to be featured in this Ruby Central spotlight—check it out to see how we can help.

2. 🎟️ The very last RailsConf has officially sold out! Already got your tickets? ​​​FastRuby will be at Hack Spaces on July 9th, pairing on upgrade issues and working on the open-source gems we use, enhance, and maintain. We hope to see you there!

Come say 👋 hello, or collaborate with us on some of our favorite Open-Source projects! - Ernesto Tagwerker (LinkedIn Video)

3. 💎 How does Ruby know where your code is running? The article, Understanding the Concept of Binding in Ruby, breaks down the concept of Binding, an often-overlooked feature that provides powerful control over scope, context, and evaluation. Discover how Binding objects capture execution contexts for dynamic view rendering and transform your ERB templates.

4. 🚨 In this post, Defined Methods in Rake Tasks; You're Gonna Have a Bad Time, Kevin Jalbert uncovers a sneaky pitfall with defined_methods in Rake tasks that can trip up even seasoned Rubyists. If your tasks are behaving strangely, this might be the reason. Learn practical solutions like renaming methods, inlining code, or extracting methods into modules to keep your tasks conflict-free!


😫 Falling behind on your upgrades? Exhausted from chasing deadlines and patching outdated code?

🌳 Bonsai delivers expert, zero-downtime Rails upgrades with affordable plans starting at $4,000/month. Our AI-powered, battle-tested process will get you to a supported version faster. 🤖

If your team struggles with an aging codebase, let us take the headache out of your next upgrade. 🚀


5. 4. 🚀 Tired of digging through params in your Rails controllers? The post by Martin Emde introduces a cleaner, more explicit way to handle expected parameters, making your code easier to read, maintain, and test. How to: Rails `params.expect` is a great trick for Rails devs looking to level up.

6. 🔐 Ready to boost your Rails app's security? Paweł Dąbrowski walks you through migrating your database columns to encrypted versions using Rails' built-in Active Record Encryption! Perfect for handling sensitive data, such as PII, this step-by-step guide ensures a smooth transition.

7. 🎩 Enhance your client-side validations with a sprinkle of Stimulus magic! ✨ In the post, Better Client-side Validations Using Stimulus by Unagi, discover how to leverage native HTML validations with custom messages using a simple CSS class and a Stimulus controller. Make your forms more user-friendly and reusable! 🚀

8. 🌟 Exciting news for Rubyists! Marco Roth just launched the Herb Language Server and VS Code Extension, bringing real-time, context-aware feedback to your HTML+ERB files! Instantly catch unclosed tags and syntax issues right in your editor. What if your Rails models could talk back?

9. 😱 Ever wondered what happens when you delete a user record without a backup plan? Join Vincent on a thrilling Friday night ride through a database disaster that turned into a productivity breakthrough in How I Dropped the Production Database on a Friday Night. Learn why CASCADE deletes can be a developer's nightmare and how this major screwup led to unexpected team growth. Don't miss this rollercoaster read! 🎢

👀 Check out our other articles on: ​​Performance​​ | ​Upgrades​​​ | ​​​Best Practices​​​ | ​​​Tech Debt​​

Bookmark them, share them, or save them for later. We hope you found these links helpful.😉

Know anyone who would love to receive this newsletter? Tell them to ​​​subscribe to the Rails Upgrade News newsletter​​​​​

Best,

The ​​​​​FastRuby.io​​​​​ Team

Don't wait to bring your Rails application up to date.

We will get on a quick call and recommend a couple of options to start upgrading your Rails app.