Monday, 15 July 2013

ruby on rails - Devise Confirmable. How to remove email field? -


To send new confirmation instructions, an email must be entered. I want to avoid that because my users are logged in at that moment, so there is no need to ask for I just go to current_user.email

I do not want to send client-side content like this:

  = F.email_field: email, value: current_user.email, class: "hidden"  

I need a server side solution

Thanks guys! According to

, the confirmation user can be brought to the user as follows:

Pre> user = user.find (1) user.send_confirmation_instructions

So you do not really need to get an email from the form.


No comments:

Post a Comment