Thursday, April 24, 2008

Many to Many relations in Ruby

http://jrhicks.net/Projects/rails/has_many_and_belongs_to_many.pdf explains how to handle many to many relations between two models.

But if you want to store more information into your relational table then you have to use has_many through..
http://wiki.rubyonrails.org/rails/pages/Beginner+Howto+on+has_many+:through

No comments: