diff options
| author | hukl <contact@smyck.org> | 2009-02-21 14:55:39 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-21 14:55:39 +0100 |
| commit | 55800bf0565f392a48b6d3a673da60525aad423b (patch) | |
| tree | 0f7ae35bf76e34a35b74ab4ee1dfc3242d127e27 /app/controllers/nodes_controller.rb | |
| parent | 4c3d622b3795836e1e7be4df303ee256a88b2812 (diff) | |
wiring together some views to make basic navigation
in the admin interface possible
Diffstat (limited to 'app/controllers/nodes_controller.rb')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index 6d400bc..7e2b733 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -58,6 +58,8 @@ class NodesController < ApplicationController | |||
| 58 | 58 | ||
| 59 | def publish | 59 | def publish |
| 60 | @node.publish_draft! | 60 | @node.publish_draft! |
| 61 | flash[:notice] = "Draft has been published" | ||
| 62 | redirect_to node_path | ||
| 61 | end | 63 | end |
| 62 | 64 | ||
| 63 | def move_to | 65 | def move_to |
