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
controller.

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]

Please help.

-- 
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.

Reply via email to