diff options
| author | hukl <contact@smyck.org> | 2009-09-09 15:19:33 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-09 15:19:33 +0200 |
| commit | f7ce8c245fde3f6202103ae614b181c0ba44ed93 (patch) | |
| tree | 4625c54b0dfb31bdc3e71480fb8936fa5a6c0ca5 /app/controllers/nodes_controller.rb | |
| parent | f3a8cd8d1e8dfafb987163d95208e0ff2ccbfbc2 (diff) | |
added editing of slugs and moving of nodes. to edit a slug or move a node you edit that node, make your changes and save. the slug and parent node changes get staged and are applied once that revision is published
Diffstat (limited to 'app/controllers/nodes_controller.rb')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index a23354c..0d4a3fe 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -57,6 +57,7 @@ class NodesController < ApplicationController | |||
| 57 | end | 57 | end |
| 58 | 58 | ||
| 59 | def update | 59 | def update |
| 60 | @node.update_attributes(params[:node]) | ||
| 60 | @draft = @node.find_or_create_draft current_user | 61 | @draft = @node.find_or_create_draft current_user |
| 61 | @draft.tag_list = params[:tag_list] | 62 | @draft.tag_list = params[:tag_list] |
| 62 | if @draft.update_attributes( params[:page] ) | 63 | if @draft.update_attributes( params[:page] ) |
