Rails Revelry
Subscribe
Sign in
Home
Notes
Archive
About
Latest
Top
When Does an Active Record Query Actually Run?
Active Record queries often look like loaded records before Rails has touched the database. This article traces how relations accumulate intent, which…
Jun 28
Start Here: A Map of RailsRevelry
The chapters, reading paths, and Rails boundaries this publication is tracing.
Jun 26
Where Does current_user Actually Live?
The request-local life of identity across Warden, Devise, CurrentAttributes, and the Rails Executor.
Jun 21
1
How Rails Flash Survives One Redirect
Rails flash messages feel like view-level notices, but they are request-to-request state. This article traces how flash, flash.now, flash.keep, and…
Jun 14
1
Sessions Are Not Server Memory
In a default Rails app, the session is not a server-side hash. It is serialized, encrypted, and carried by the browser as a cookie.
Jun 7
1
1
May 2026
How Rails Finds the View to Render
Rendering is not "show the file." Rails builds a lookup query from the controller, action, format, variant, and view paths, then resolves the best…
May 31
1
2
How Rails Turns a Controller Action Into Response
Rails actions do not return HTTP responses. They perform response state that Rails turns into status, headers, and body.
May 24
2
Why Rails Runs Code Before Your Controller Action
Your Rails action may look small because the real request boundary lives above it. `before_action` is where Rails lets a controller declare what must…
May 17
1
2
How Rails Builds params Before Your Action Runs
`params` is not one thing. It is a dynamic combination of route, query, and request body parameters, making it a flexible and powerful tool for handling…
May 10
2
How Rails Dispatches a Request to a Controller
A clear explanation of what happens after routing chooses an endpoint: controller resolution, params setup, callback execution, and response handling.
May 3
1
April 2026
How Rails Routing Works: Turning URLs into Controller Actions
A clear mental model for how Rails matches requests, extracts params, and dispatches controller actions.
Apr 26
2
Inside the Rails Middleware Stack: How Requests Actually Move Through Your App
Rails middleware is not just a list of steps that run before your controller. It is a chain of Rack wrappers around your app, and that one mental model…
Apr 19
1
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts