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
Post a Comment