27 Feb '12, 9pm

TIL all about Polymorphic Associations. Neat little buggers. /cc @kylefox @aviflombaum @maxstoller @iamcarbon

is a connection between two Active Record models. Associations are implemented using macro-style calls, so that you can declaratively add features to your models. For example, by declaring that one model belongs_to another, you instruct Rails to maintain Primary Key–Foreign Key information between instances of the two models, and you also get a number of utility methods added to your model. Rails supports six types of associations:

Full article: http://guides.rubyonrails.org/association_basics.html#pol...

Tweets

“A Guide to Active Record Associations”

guides.rubyonrails.org 11 Mar '12, 12am

is a connection between two Active Record models. Associations are implemented using macro-style calls, so that you can de...

Feedback needed for the Rails Engines Guide:

edgeguides.rubyonrails.org 27 Feb '12, 12am

invoke active_record create db/migrate/[timestamp]_create_blorgh_posts.rb create app/models/blorgh/post.rb invoke test_uni...

Ruby on Rails Guides: Active Record Query Inter...

edgeguides.rubyonrails.org 23 Feb '12, 6am

because of argument safety. Putting the variable directly into the conditions string will pass the variable to the databas...

Super excited about , which just landed on Rail...

edgeguides.rubyonrails.org 05 Mar '12, 12pm

Resourceful Routing: If you’re building a RESTful JSON API , you want to be using the Rails router. Clean and conventional...