Class: Sunrise::SettingsController

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

Instance Method Summary collapse

Instance Method Details

#editObject



5
6
7
8
# File 'app/controllers/sunrise/settings_controller.rb', line 5

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

#updateObject



10
11
12
13
# File 'app/controllers/sunrise/settings_controller.rb', line 10

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