From 824ee79452f3a382d5fb88d3dfbb046103899582 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 8 Oct 2012 15:20:45 +0600 Subject: [PATCH] [refs #579] redirect to created comment --- app/controllers/projects/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects/comments_controller.rb b/app/controllers/projects/comments_controller.rb index a257855e5..be8fb5645 100644 --- a/app/controllers/projects/comments_controller.rb +++ b/app/controllers/projects/comments_controller.rb @@ -16,7 +16,7 @@ class Projects::CommentsController < Projects::BaseController flash[:error] = I18n.t("flash.comment.save_error") flash[:warning] = @comment.errors.full_messages.join('. ') end - redirect_to project_commentable_path(@project, @commentable) + redirect_to project_commentable_path(@project, @commentable) + "#comment#{@comment.id}" end def edit