Class: Sunrise::SettingsController

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

Instance Method Summary collapse

Instance Method Details

#editObject



7
8
9
10
# File 'app/controllers/sunrise/settings_controller.rb', line 7

def edit
  @settings = Settings.get_all
  respond_with(@settings)
end

#updateObject



12
13
14
15
# File 'app/controllers/sunrise/settings_controller.rb', line 12

def update
  Settings.update_attributes(params[:settings])
  redirect_to root_path
end