Class: Admin::PreferencesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::PreferencesController
- Defined in:
- app/controllers/admin/preferences_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
9 10 11 |
# File 'app/controllers/admin/preferences_controller.rb', line 9 def edit render end |
#show ⇒ Object
4 5 6 7 |
# File 'app/controllers/admin/preferences_controller.rb', line 4 def show set_standard_body_style render :edit end |
#update ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/controllers/admin/preferences_controller.rb', line 13 def update if @user.update(preferences_params) redirect_to admin_configuration_path else flash[:error] = t('preferences_controller.error_updating') render :edit end end |