From 55bc7e53f260bda99fd007d3422b264e1f4f6124 Mon Sep 17 00:00:00 2001 From: hukl Date: Mon, 9 Mar 2009 00:01:33 +0100 Subject: after creating a node, edit it rather than showing it --- app/controllers/nodes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 if parent and @node.save @node.move_to_child_of parent - redirect_to(@node) + redirect_to(edit_node_path(@node)) else @node.errors.add("Parent node") render :action => :new -- cgit v1.3