>>
>> in meeting.rb
>>
>> belongs_to :give_person, :class_name => "Person"
>> belongs_to :take_person, :class_name => "Person"
>>
>
> this means that the foreign key is set to give_person_id and
> take_person_id
> but in your person model, the foreign key is give_id and take_id
>
This was the problem.
I changed them to give_person_id and take_person_id and now it works!
Thanks for your help!
soichi
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment