News

Middleware in Rails: What It Is, How It Works, and Examples
P.S. I suggest that you read my previous post "The Definitive Guide to Rack for Rails Developers" before reading this one. That should give you a good context for this post. If you're already familiar with Rack, keep reading.As we learned in the p...

Basics of Active Record Validations - DEV Community
Our applications do not exist in a vacuum. We will ideally have real people using and interacting with our programs constantly. In a perfect world, everyone would know our intentions as developers when asking for user input in things like a userna...



How GoodJob's mountable Rails Engine delivers Javascript importmaps and frontend assets
GoodJob is a multithreaded, Postgres-based ActiveJob backend for Ruby on Rails.GoodJob includes a full-featured (though optional) web dashboard to monitor and administer background jobs. The web dashboard is included in the good_job gem as a mount...

Apparently GPT4 understand AWS Cognito and the Sinatra Ruby web framework very well - YouTube
Quick experiment asking GPT4 to write all the authentication glue code between Sinatra and AWS Cognito. Haven't tried the code yet and a few issues popped out immediately, but at first glance it seems like it could save a huge amount of time.

Why Every User Without a Profile Picture on GitHub Was Yehuda Katz
In 2013, GitHub experienced a bug that caused every user without a profile photo to be assigned the profile photo of a specific user, Yehuda Katz, who is a well-known software developer and member of the Ruby on Rails core team.The reason for this...


Understanding the Rails Router: Why, What, and How
Transitioning from ASP.NET, I knew the concept of routing and got comfortable with the router after reading the docs. However, at the back of my mind, I've always had that nagging feeling that I don't REALLY understand the complete picture. I coul...