From 83a83770e705dc42c2d3ee28e8477a4f8dc4a10b Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 15 Feb 2009 22:56:09 +0100 Subject: using real users now that we have a real user model --- app/controllers/nodes_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers/nodes_controller.rb') 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 def update draft = @node.find_or_create_draft current_user - if request.post? && draft.update_attributes( params[:page] ) + + if draft.update_attributes( params[:page] ) redirect_to(@node) else render :action => :edit -- cgit v1.3