website stat

has_and_belongs_to_many attribute

Here’s an excellent tutorial by Jeff Hicks explaining how the has_and_belongs_to_many ActiveRecord attribute works.

has_and_belongs_to_many is used on Ruby on Rails models to specify a N-to-N table relationship.


2 Responses to “has_and_belongs_to_many attribute”

  1. Tiago Pinto
    Published at December 28th, 2005 at 3:48 am

    Bom post.
    o link está errado, será este o correcto: http://gridpt1.fe.up.pt/mlopes/blog/wp-content/has_many_and_belongs_to_many.pdf

  2. mlopes
    Published at December 28th, 2005 at 4:02 am

    Indeed. Thank you :-)