[Rails] Re: undefined method `generate_token'

2010-02-10 Thread RubyonRails_newbie
Ok - So should I have another line in that says: user = invitation.sender followed by @invitation.sender = @user ? Sorry - may be a daft question, but trying to get my head round it as I go. The tutorial has been trouble free until this... :-) On 10 Feb, 04:09, David furb...@gmail.com wrote:

[Rails] Re: undefined method `generate_token'

2010-02-09 Thread David
You should specify where @user is defined, otherwise it looks like an undefined variable issue. You haven't defined @user in the code you pasted. Most authentication schemes define the current logged in user as current_user or User.current. Are you defining it as @user? On Feb 9, 6:05 pm,