Class Cms::SectionNodesController
In: app/controllers/cms/section_nodes_controller.rb
Parent: Cms::BaseController

Methods

Public Instance methods

[Source]

   # File app/controllers/cms/section_nodes_controller.rb, line 4
4:   def index
5:     @toolbar_tab = :sitemap
6:     @section = Section.root.first
7:   end

[Source]

    # File app/controllers/cms/section_nodes_controller.rb, line 11
11:   def move_after
12:     move(:after)
13:   end

[Source]

    # File app/controllers/cms/section_nodes_controller.rb, line 8
 8:   def move_before
 9:     move(:before)
10:   end

[Source]

    # File app/controllers/cms/section_nodes_controller.rb, line 14
14:   def move_to_beginning
15:     move_to(:beginning)
16:   end

[Source]

    # File app/controllers/cms/section_nodes_controller.rb, line 17
17:   def move_to_end
18:     move_to(:end)
19:   end

[Source]

    # File app/controllers/cms/section_nodes_controller.rb, line 20
20:   def move_to_root
21:     @section_node = SectionNode.find(params[:id])
22:     @root = Section.root.find(params[:section_id])
23:     @section_node.move_to(@root, 0)
24:     render :json => {:success => true, :message => "'#{@section_node.node.name}' was moved to '#{@root.name}'"}    
25:   end

[Validate]