Tutorials
A Rubyist's Walk Along the C-side (Part 8): Exceptions
In the previous article, you saw TypedData objects, a type unique to the Ruby C API. In this article, we’ll look at how to raise errors and rescue from errors.Raising errors You’ve already seen one way to raise errors in part 4. The Check_Type fun...
Rails 7 adds support for deferrable foreign key constraints in PostgreSQL | Saeloun Blog
In the database, the Foreign Key constraint enforces referential integrity. This ensures the parent record has to be present before creating a child record and these constraints are immediately enforced(checked after each statement). But, this beh...
Complete Guide To Managing User Permissions In Rails Apps
A common requirement of web applications is the ability to assign specific roles and permissions.Many types of web applications distinguish between admins and regular users in providing restricted access. This is often performed using a simple boo...
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...