← All writing
// Series · 2 parts
How Rails Actually Knows Which Controller to Execute
Following a request from the router to the controller action.
-
01
(opens on Medium in a new tab)
How Rails Actually Knows Which Controller to Execute Medium
Part 1: How Rails Actually Knows Which Controller to Execute
“Rails feels magical… until you realize every bit of that magic is carefully engineered.” If you’ve built a Rails application, you’ve probably written something like this: Started your server…...
· 4 min
-
02
(opens on Medium in a new tab)
How Rails Actually Knows Which Controller to Execute Medium
Part 2: How Rails Actually Knows Which Controller to Execute
At this point, our request has finally reached the router. Rails already knows one thing. It needs to find which controller should handle this request. Seems easy, right? Not really. Imagine you’re...
· 4 min