Method: Devise::PasswordsController#create
- Defined in:
- app/controllers/devise/passwords_controller.rb
#create ⇒ Object
POST /resource/password
12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/devise/passwords_controller.rb', line 12 def create self.resource = resource_class.send_reset_password_instructions(params[resource_name]) if resource.errors.empty? :notice, :send_instructions redirect_to new_session_path(resource_name) else render_with_scope :new end end |