Class: Course::Admin::SidebarSettingsController

Inherits:
Controller
  • Object
show all
Defined in:
app/controllers/course/admin/sidebar_settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject

:nodoc:


6
7
# File 'app/controllers/course/admin/sidebar_settings_controller.rb', line 6

def edit #:nodoc:
end

#updateObject

:nodoc:


9
10
11
12
13
14
15
# File 'app/controllers/course/admin/sidebar_settings_controller.rb', line 9

def update #:nodoc:
  if @settings.update(settings_sidebar_params) && current_course.save
    redirect_to course_admin_sidebar_path(current_course), success: t('.success')
  else
    render 'edit'
  end
end