Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some good resources for learning the Rails codebase internals? [closed]

I have been developing in Rails for about 3 years now, and would like to learn more about the Rails internals themselves. Rails 3 supposedly provides nice API's for integrating more closely with Rails, but I'm having a hard time finding documentation on how to use them. Here are some examples of what i'm looking for:

Rails Initialization Process http://guides.rubyonrails.org/initialization.html

Arel Walkthrough http://railscasts.com/episodes/239-activerecord-relation-walkthrough

Routing Walkthrough http://railscasts.com/episodes/231-routing-walkthrough http://railscasts.com/episodes/232-routing-walkthrough-part-2

Crafting Rails Applications http://pragprog.com/book/jvrails/crafting-rails-applications

Are there any other good resources that an help as a guided tour of how Rails works? (and please don't say read the source code.. I'm looking for a more guided explanation)

like image 241
noli Avatar asked Nov 11 '11 07:11

noli


2 Answers

You may like this articles:

http://piotrsarnacki.com/2010/07/31/rails3-modularity/

http://piotrsarnacki.com/2010/06/18/rails-internals-railties/

But, you should start writing such articles by own, ie try to write how controllers instance variables are visible in views or prepare description of all rails modules and classes - this will make you much more familliar with rails.

like image 171
Sławosz Avatar answered Nov 09 '22 03:11

Sławosz


The Ruby Metaprogramming Book has some chapters in the end teaching how ActiveRecord internals is made up.

like image 3
Pratik Khadloya Avatar answered Nov 09 '22 03:11

Pratik Khadloya