Class: Ez::Settings::SettingsController

Inherits:
ApplicationController show all
Includes:
RequestDispatcher
Defined in:
app/controllers/ez/settings/settings_controller.rb

Instance Method Summary collapse

Methods included from RequestDispatcher

#group, #interface

Methods inherited from ApplicationController

#view

Instance Method Details

#indexObject



12
13
14
# File 'app/controllers/ez/settings/settings_controller.rb', line 12

def index
  view :index
end

#showObject



16
17
18
# File 'app/controllers/ez/settings/settings_controller.rb', line 16

def show
  render_group(group, group.store(backend))
end

#updateObject



20
21
22
23
24
25
26
27
28
# File 'app/controllers/ez/settings/settings_controller.rb', line 20

def update
  store = group.store(backend).update(params[:settings])

  if store.valid?
    redirect_to interface.config.default_path
  else
    render_group(group, store)
  end
end