Class: SettingsController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#after_sign_in_path_for, #api_authenticate!, #current_project, #expire_revision!, #followed_projects, #no_cache, #read_revision, #require_login, #return_or_cache_revision!, #revision, #unfurling?, #with_current_project

Methods included from UrlHelper

#feature_path, #link_to_project_feature

Instance Method Details

#showObject



4
5
6
# File 'app/controllers/settings_controller.rb', line 4

def show
  @settings = Settings.new
end

#updateObject



8
9
10
11
12
# File 'app/controllers/settings_controller.rb', line 8

def update
  @settings = Settings.new(params[:settings])
  @settings.save!
  redirect_to settings_path, :notice => "Changes saved"
end