summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/nodes_controller.rb2
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