Displaying 1 result from an estimated 1 matches for "relationship_top".
Did you mean:
  relationship_type
  
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 :topics, :through => :relationship_topic
end
class RelationshipTopic < ActiveRecord::Base
  validates_uniqueness_of :topic, :scope =>...