Class: Admin::PreferencesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/preferences_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



9
10
11
# File 'app/controllers/admin/preferences_controller.rb', line 9

def edit
  render
end

#showObject



4
5
6
7
# File 'app/controllers/admin/preferences_controller.rb', line 4

def show
  set_standard_body_style
  render :edit
end

#updateObject



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