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 5b919b1f..22606674 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -116,7 +116,8 @@ class NodesController < ApplicationController | |||
| 116 | rescue LockedByAnotherUser => e | 116 | rescue LockedByAnotherUser => e |
| 117 | flash[:error] = e.message | 117 | flash[:error] = e.message |
| 118 | redirect_to node_path(@node) | 118 | redirect_to node_path(@node) |
| 119 | rescue ActiveRecord::RecordInvalid | 119 | rescue ActiveRecord::RecordInvalid => e |
| 120 | flash.now[:error] = e.record.errors.full_messages.to_sentence | ||
| 120 | @page = @node.autosave || @node.draft || @node.head | 121 | @page = @node.autosave || @node.draft || @node.head |
| 121 | render :action => :edit | 122 | render :action => :edit |
| 122 | end | 123 | end |
