Understanding Rails internals

Hello all,
Is there any good resource where to start to understand how the various internal component of rails are glued together? Maybe a book that dissect this massive framework?

Debugging it is never so simple, due to a lot of “magic” (aka meta programming) involved.

Thanks :slight_smile:

The Rails 4 Way is a useful book on the topic.


I usually open up the rails source and start reading it up. It can be a bit daunting in the beginning, but once you understand the code organisation, it’s not that bad.

Is there something in particular you are stuck on that you would like to debug?




It’s a little hard if you’re new to it, but in the long run It’ll make you a great Rails developer.

I’m currently reading through "Crafting Rails 4 Applications"1 by

José Valim. Each chapter gives deep insight on how Rails work. Also I’ve

recently discovered “Monkey & Crow” blog with series of posts "Reading

Rails"2. Good stuff.