Displaying 1 result from an estimated 1 matches for "slafe".
Did you mean:
safe
2006 Mar 12
0
NameError when trying to combine Recipe 14 (rich HABTM) & Rec. 10 (self-ref HABTM):
...9;'John Doe'')
3> jsmith.to_relations.create(:name => "works_for", :target => jdoe)
4> assert_equal 1, jsmith.slaves.size
>>>>
NameError: activesupport/lib/active_support/dependencies.rb:106:in
`const_missing'': uninitialized constant Slafe
Models
------------------------------------
class Person < ActiveRecord::Base
has_many :to_relations , :foreign_key => ''source_id'',
:class_name => ''Relation''
has_many :slaves , :through => :to_relations <<---- DOES...