displays proposal created within management layout

This commit is contained in:
rgarcia
2015-10-13 14:57:27 +02:00
parent 06e35a032d
commit dc93ea6dba
6 changed files with 15 additions and 6 deletions

View File

@@ -34,7 +34,8 @@ module CommentableActions
if @resource.save_with_captcha
track_event
redirect_to @resource, notice: t('flash.actions.create.notice', resource_name: "#{resource_name.capitalize}")
redirect_path = url_for(controller: controller_name, action: :show, id: @resource.id)
redirect_to redirect_path, notice: t('flash.actions.create.notice', resource_name: "#{resource_name.capitalize}")
else
load_featured_tags
set_resource_instance