diff options
| author | hukl <hukl@eight.local> | 2009-02-15 22:56:09 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-15 22:56:09 +0100 |
| commit | 83a83770e705dc42c2d3ee28e8477a4f8dc4a10b (patch) | |
| tree | 5dfcd129a5ee870eaed8831ac9df8b47413454da /app/controllers/nodes_controller.rb | |
| parent | fe83a57c9c6821618ddecab55731313df3295556 (diff) | |
using real users now that we have a real user model
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 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 |
