Tutorials
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...
Debugging Rails in Docker. With the rise of containerization…
With the rise of containerization, Docker has become a popular solution for isolating application environments. This is especially useful when developing and deploying Rails applications. Managing a Rails app and its databases in separate containe...
ActiveStorage Direct Upload with Stimulus | Rails Designer
ActiveStorage’s DirectUpload feature allows files to be directly uploaded to your Cloud’s storage without touching your app’s server.In two previous articles I explored first previewing images before upload and then a drag & drop feature. In this ...
Deploy Multiple Rails Apps To the Same Server with Puma + Nginx
How to deploy multiple Rails apps on a single server using Puma and Nginx, with detailed setup steps and configurations. If Kamal is not for you then this article is for you. There’s a lot of my opinions in this article, feel free to jump to the s...