search for: updated_by_id

Displaying 1 result from an estimated 1 matches for "updated_by_id".

2006 Jun 04
6
Activerecord relations.
I''ve got two tables set up - Things and Users where Users have many things and Things belongs to Users. They''re connected by Things.user_id => User.id and Things.updated_by_id => User.id both in the Things model using Belongs_to and custom foreign key for one of them. Problem is when I''ve got the updated_by_id belongs_to I can''t add Things using Things.updated_by_id = session[:user] I get a fixnum error. But when I remove the foreign key for upd...