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


in order send new confirmation instructions, email has entered. want avoid because users logged in @ moment, there's no need email asking. want send new instructions current_user.email

i don't want client side stuff this:

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

i need server side solution.

thanks guys!

as per devise codebase, sending confirmation email can invoked on user follows:

user = user.find(1) user.send_confirmation_instructions 

so don't need email form.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -