summaryrefslogtreecommitdiff
path: root/app/controllers/nodes_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/nodes_controller.rb')
-rw-r--r--app/controllers/nodes_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb
index 19fbb57..2915acc 100644
--- a/app/controllers/nodes_controller.rb
+++ b/app/controllers/nodes_controller.rb
@@ -33,7 +33,8 @@ class NodesController < ApplicationController
33 33
34 def update 34 def update
35 draft = @node.find_or_create_draft current_user 35 draft = @node.find_or_create_draft current_user
36 if request.post? && draft.update_attributes( params[:page] ) 36
37 if draft.update_attributes( params[:page] )
37 redirect_to(@node) 38 redirect_to(@node)
38 else 39 else
39 render :action => :edit 40 render :action => :edit