Tutorials
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...
Smooth Transitions with Turbo Streams | Rails Designer
With Turbo Streams you can update specific parts of your app. Inject a chat message, update a profile picture or insert a Report is being created alert.
The preciseness Turbo Streams offers is great. But often the abruptness of it, its not too ap...
Getting rspec/capybara browser console output for failed tests – Bibliographic Wilderness
I am writing some code that does some smoke tests with capybara in a browser of some Javascript code. Frustratingly, it was failing when run in CI on Github Actions, in ways that I could not reproduce locally. (Of course it ended up being a config...