Displaying 1 result from an estimated 1 matches for "viewer_id".
Did you mean:
reviewer_id
2007 Jun 18
0
Problem with belongs_to associations validating associated class: bug in rails in development mode?
Hi all,
I''m using rails version 1.2.3.
I have the following association in my View class
belongs_to :viewer, :class_name => ''User'', :foreign_key => :viewer_id
And of course i have a User model class defined to.
The problem was that when i tried to use this association it would
only work once.
At the second try, i would get the following strange error:
ActiveRecord::AssociationTypeMismatch : User expected, got User
On a call to:
my_view.viewer = my_...