diff options
| author | hukl <contact@smyck.org> | 2009-03-09 00:01:33 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-09 00:01:33 +0100 |
| commit | 55bc7e53f260bda99fd007d3422b264e1f4f6124 (patch) | |
| tree | fac61cda3fd551cf1d480201fdca86527f465b57 /app/controllers | |
| parent | af0b1e4b39b9c160747143a830c3884b064edd86 (diff) | |
after creating a node, edit it rather than showing it
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index f82ab82..0c961b7 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -32,7 +32,7 @@ class NodesController < ApplicationController | |||
| 32 | 32 | ||
| 33 | if parent and @node.save | 33 | if parent and @node.save |
| 34 | @node.move_to_child_of parent | 34 | @node.move_to_child_of parent |
| 35 | redirect_to(@node) | 35 | redirect_to(edit_node_path(@node)) |
| 36 | else | 36 | else |
| 37 | @node.errors.add("Parent node") | 37 | @node.errors.add("Parent node") |
| 38 | render :action => :new | 38 | render :action => :new |
