fixes #1165
This commit is contained in:
@@ -46,8 +46,8 @@ class PostsController < ApplicationController
|
|||||||
if @post.errors.any?
|
if @post.errors.any?
|
||||||
@error_message = @post.errors.full_messages.join("; ")
|
@error_message = @post.errors.full_messages.join("; ")
|
||||||
render :template => "static/error", :status => 500
|
render :template => "static/error", :status => 500
|
||||||
elsif params[:tags].present?
|
elsif params[:tags].present? || params[:pool_id].present?
|
||||||
redirect_to post_path(@post, :tags => params[:tags])
|
redirect_to post_path(@post, :tags => params[:tags], :pool_id => params[:pool_id])
|
||||||
else
|
else
|
||||||
redirect_to post_path(@post)
|
redirect_to post_path(@post)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user