Class: CourseNavigationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- CourseNavigationsController
- Defined in:
- app/controllers/course_navigations_controller.rb
Instance Method Summary collapse
- #reposition ⇒ Object
-
#show ⇒ Object
GET /course_navigations/1 GET /course_navigations/1.xml.
Methods inherited from ApplicationController
Instance Method Details
#reposition ⇒ Object
26 27 28 29 30 |
# File 'app/controllers/course_navigations_controller.rb', line 26 def reposition order = params[:page] Page.reposition(order) render :text => order.inspect end |
#show ⇒ Object
GET /course_navigations/1 GET /course_navigations/1.xml
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/controllers/course_navigations_controller.rb', line 13 def show @no_pad = true @course = Course.find(params[:id]) :update, @course @pages = @course.pages respond_to do |format| format.html # show.html.erb format.xml { render :xml => @pages } end end |