Class: Admin::SettingsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/admin/settings_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate_user!, #current_user, #load_settings

Instance Method Details

#indexObject


7
8
# File 'app/controllers/admin/settings_controller.rb', line 7

def index
end

#updateObject


10
11
12
13
14
15
16
17
# File 'app/controllers/admin/settings_controller.rb', line 10

def update
  if @settings.update(setting_params)
    redirect_to admin_settings_path, notice: 'Settings updated!'
  else
    flash.now.alert = 'Error updating settings.'
    render :index
  end
end