From 7c0908f03f5ba9ebc103c4f3c984bf48675711be Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 24 Feb 2009 08:37:40 +0100 Subject: small modification with a big workflow impact! --- app/controllers/nodes_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers/nodes_controller.rb') diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index a558a86..e698ebc 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb @@ -49,7 +49,8 @@ class NodesController < ApplicationController @draft = @node.find_or_create_draft current_user @draft.tag_list = params[:tag_list] if @draft.update_attributes( params[:page] ) - redirect_to(@node) + flash[:notice] = "Draft has been updated" + redirect_to edit_node_path(@node) else render :action => :edit end -- cgit v1.3