I have a typical rails form with form_for(@user...blah blah)
There is a field to enter the email address: email. But that same email
address has to be entered into the invitation_last_sent_to. So the same
value, in two different columns.
There is no problem when saving in the column 'email' but I want to save
that same email value into invitation_last_sent_to column in the
I have tried the following in users_controller.rb and when I get the
rails console, the value in invitation_last_sent_to is always nil.
@user.invitation_last_sent_to = @user.email
@user.invitation_last_sent_to = params[:user][:email]
@user.invitation_last_sent_to = params[:email]