On 11 August 2011 20:53, Leonel *.* <[email protected]> wrote: > I'm doing it in the create action. I did use debug to inspect @user and > params and that's why I used... > > @user.invitation_last_sent_to = @user.email > @user.invitation_last_sent_to = params[:user][:email] > @user.invitation_last_sent_to = params[:email] > > ...but none of those 3 seem to work.
so in the debugger what was the value of @user.email after @user = User.new(params[:user]) and what was the value of @user.invitation_last_sent_to after @user.invitation_last_sent_to = @user.email If you don't understand what you see in the debugger copy the output from the terminal showing the above tests and paste here along with the code for the create action. Colin > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

