Tutorials

How To Build a Powerful Search Form With Hotwire - YouTube
In this video, we're going to look at how to create a search form using Hotwire. Namely, we're going to filter the search results using Turbo Frames and we'll add a touch of StimulusJS for real-time filtering.🎥 Get on the waiting list for my new ...

User notifications with Rails, Noticed, and Hotwire
A nearly-universal need in web applications is user notifications. An event happens in the application that the user cares about, and you inform the user of the event. A common example is in applications that have a commenting system — when a user...

Ruby on Rails 68 Frames: Infinite Scroll Pagination - YouTube
In this previous episode we added a button to "Load more" records at the bottom of the list, with the help of Hotwire Turbo Streams.Episode Source Code: https://github.com/corsego/68-frames-...In the previous episode we automatically added more re...


Know what your scopes are doing: where.first vs find_by - Andy Croll
There are numerous benefits to using an Object-Relational Mapper (ORM), such as Active Record, to generate your SQL. You gain from clear repeatable abstractions, saving time and improving readability.Unfortunately the very abstractions that make a...





Rails 7 allows permitting numeric params | Saeloun Blog
In Rails, strong params provide an interface for protecting attributes from the end-user assignment. We can specify required attributes and neglect unnecessary attributes to be used in the Active model mass assignment. However, in Rails 6, there w...