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