Displaying 1 result from an estimated 1 matches for "new_cookie_key".
2006 Feb 23
3
Unable to update database object
...here may have seen
behavior like this before. I have a user successfully created in the
Users table of my application. When I try to update a single column
using:
@user = User.find(:first,
:conditions => ["login_name = ?",
@login_user.login_name])
@user.new_cookie_key
@user.save
I get the error: "NoMethodError in Users#login. You have a nil object
when you didn''t expect it!"
The user is found OK, the new_cookie_key method works as expected, but I
can''t save the object! I''ve removed all validation from the User model
but...