Class: CourseNavigationsController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#robot?

Instance Method Details

#repositionObject



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

#showObject

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])
  authorize! :update, @course

  @pages = @course.pages

  respond_to do |format|
    format.html # show.html.erb
    format.xml { render :xml => @pages }
  end
end