diff options
Diffstat (limited to 'app/controllers/nodes_controller.rb')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index a558a86..e698ebc 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -49,7 +49,8 @@ class NodesController < ApplicationController | |||
| 49 | @draft = @node.find_or_create_draft current_user | 49 | @draft = @node.find_or_create_draft current_user |
| 50 | @draft.tag_list = params[:tag_list] | 50 | @draft.tag_list = params[:tag_list] |
| 51 | if @draft.update_attributes( params[:page] ) | 51 | if @draft.update_attributes( params[:page] ) |
| 52 | redirect_to(@node) | 52 | flash[:notice] = "Draft has been updated" |
| 53 | redirect_to edit_node_path(@node) | ||
| 53 | else | 54 | else |
| 54 | render :action => :edit | 55 | render :action => :edit |
| 55 | end | 56 | end |
