search for: relationship_ids

Displaying 2 results from an estimated 2 matches for "relationship_ids".

2009 Oct 15
2
Model.Save causing nil object error
Hello all. Newbie to rails here and I am having a bit of an issue. I have the following models: class Topic < ActiveRecord::Base validates_presence_of :name validates_length_of :name, :minimum => 3 has_many :relationship_topics has_many :relationships, :through => :relationship_topics end class Relationship < ActiveRecord::Base has_many :relationship_topics has_many
2006 Apr 01
7
Any way around AssociationTypeMismatch?
I want to have popup menus and check boxes in my forms to let users select associated objects. In the form I''m working on, the object "belongs_to" another type of object which is selected from a popup menu. The id of the chosen object(s) for association is passed back in the parameter hash, but when rails creates a new object from this parameter hash, I get a