diff options
Diffstat (limited to 'app/controllers/nodes_controller.rb')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb new file mode 100644 index 0000000..90cf756 --- /dev/null +++ b/app/controllers/nodes_controller.rb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | class NodesController < ApplicationController | ||
| 2 | |||
| 3 | layout 'admin' | ||
| 4 | |||
| 5 | def index | ||
| 6 | @nodes = Node.root.children.all(:include => :head) | ||
| 7 | end | ||
| 8 | |||
| 9 | def new | ||
| 10 | end | ||
| 11 | |||
| 12 | def create | ||
| 13 | end | ||
| 14 | |||
| 15 | def show | ||
| 16 | @nodes = Node.find(params[:id]).children | ||
| 17 | end | ||
| 18 | |||
| 19 | def edit | ||
| 20 | @page = Node.find(params[:id]).draft | ||
| 21 | end | ||
| 22 | |||
| 23 | def update | ||
| 24 | end | ||
| 25 | |||
| 26 | def destroy | ||
| 27 | end | ||
| 28 | |||
| 29 | end | ||
