YES! I found the answer:

class Article < ActiveRecord::Base
  has_and_belongs_to_many :tags, :join_table => :articles_tags_users
  has_and_belongs_to_many :users, :join_table => :articles_tags_users
end

class Tag < ActiveRecord::Base
  has_and_belongs_to_many :articles, :join_table => :articles_tags_users
  has_and_belongs_to_many :users, :join_table => :articles_tags_users
end

class User < ActiveRecord::Base
  has_and_belongs_to_many :articles, :join_table => :articles_tags_users
  has_and_belongs_to_many :tags, :join_table => :articles_tags_users
end

have fun!
-- 
Posted via http://www.ruby-forum.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to