Subscribe
Contact



AddThis Social Bookmark Button
2 results for posts tagged 'many' :
  • How to delete a many-to-many association with Rails

    Judging by the number of Ruby on Rails developpers asking themselves this question, this is the missing example of Rails. (It's not in my Rails reference book, and I've never seen any example on any blog.) One solution is to create More...

  • has_and_belongs_to_many or has_many :through?

    As you may (or may not) know, there are two ways to build a many-to-many (or N-N) relationship with Rails. The first way uses has_and_belongs_to_many in both models. You'll have to create a join table that has no corresponding model or More...

© 2007 Eric Abouaf