[refs #579] redirect to created comment

This commit is contained in:
Alexander Machehin 2012-10-08 15:20:45 +06:00
parent f12634cee8
commit 824ee79452
1 changed files with 1 additions and 1 deletions

View File

@ -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