search for: categoryassociations

Displaying 1 result from an estimated 1 matches for "categoryassociations".

2007 Nov 06
2
has_many :through problem
...to set it up so that I can add categories at will and assign many categories to a single ticket. I''m trying to use the has_many :through association to accomplish this, but I''ve run into an issue. Here''s the basic setup: class Ticket < ActiveRecord::Base has_many :categoryassociations has_many :categories, :through => :categoryassociations end class CategoryAssociation < ActiveRecord::Base has_many :tickets -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Googl...