Tutorials
Upgrading to Rails 8 from Rails 7 | by Patrick Karsh | Oct, 2024 | Medium
Rails 8 brings a host of new features, performance improvements, and security enhancements, making it a valuable upgrade for developers looking to maintain the stability and security of their applications. Some of the key reasons to upgrade includ...
Easy Rails controller rate limiting with Rails.cache
This makes use of Rails.cache to store a key for 20 seconds. If the method is hit again while the key exists, we return an error. Otherwise we allow the operation to complete.
This is a quick and easy way to add a simple rate limit to a controlle...
Building a Robust Data Synchronization Framework with Rails - Philippe Creux
At Zipline, we offer a one-stop shop application for retail employees that handles everything from clocking to task management and team communication. To achieve this, we need to integrate with numerous third-party applications with unique require...
Safely Passing Ruby Variables to JavaScript in ERB – code.dblock.org | tech blog
A user reported a bug in Slava, a bot that syncs Strava activities to Slack, where they couldn’t subscribe to the paid version because their Slack team name contained a quote. That was a rookie mistake on my part in HTML escaping that almost cost ...
PoC: Using the Rails 8 (Beta) Authentication Generator in API-Only Mode. | a-chacon
As you may know, one of the new features in Rails 8 is the new basic authentication generator, which demonstrates that developing everything related to authentication in a Rails application is not so complex, and often there is no need to rely on ...
Changing CSS as You Scroll with Stimulus | Rails Designer
With the power of JavaScript in a small, reusable Stimulus controller, recreate the workings of the MutationObserverTweaking the UI element or component based on some scroll state, can help make it stand out or guide focus from the user.
I recent...