Panda Beer wrote: > Hi. Currently, I had 2 models linked with HABTM association: _Article_ > and _Tag_ > > class Article < ActiveRecord::Base > has_and_belongs_to_many :tags > end > > class Tag < ActiveRecord::Base > has_and_belongs_to_many :articles > end > > But I believe I need to ad another model called _User_. Do you know how > processed to get a HABTM association with: _Article_, _Tag_ and _User_?
Perhaps by creating a Hub model with three foreign keys, and using has_many through. -- Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

