Class: Morpho::UsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Morpho::UsersController
- Defined in:
- app/controllers/morpho/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/morpho/users_controller.rb', line 6 def create if user.update_attributes(user_params) redirect_to sign_in_path, success: I18n.t('morpho.messages.users.create.success') else flash.now[:alert] = I18n.t('morpho.messages.users.create.failure') render :new end end |