summaryrefslogtreecommitdiff
path: root/app/controllers/nodes_controller.rb
blob: 90cf7564e0cf575c5b5d38fdf2041608047522f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class NodesController < ApplicationController
  
  layout 'admin'
  
  def index
    @nodes = Node.root.children.all(:include => :head)
  end

  def new
  end

  def create
  end

  def show
    @nodes = Node.find(params[:id]).children
  end

  def edit
    @page = Node.find(params[:id]).draft
  end

  def update
  end

  def destroy
  end

end