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 | |
| parent | 4c3d622b3795836e1e7be4df303ee256a88b2812 (diff) | |
wiring together some views to make basic navigation
in the admin interface possible
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 2 | ||||
| -rw-r--r-- | app/controllers/sessions_controller.rb | 2 |
2 files changed, 3 insertions, 1 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 |
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index dd86ea9..779e260 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb | |||
| @@ -17,7 +17,7 @@ class SessionsController < ApplicationController | |||
| 17 | reset_session | 17 | reset_session |
| 18 | 18 | ||
| 19 | self.current_user = user | 19 | self.current_user = user |
| 20 | redirect_back_or_default('/') # TODO: insert appropriate path to cms main page | 20 | redirect_back_or_default('/de/admin') # TODO: insert appropriate path to cms main page |
| 21 | flash[:notice] = "Logged in successfully" | 21 | flash[:notice] = "Logged in successfully" |
| 22 | else | 22 | else |
| 23 | note_failed_signin | 23 | note_failed_signin |
