This commit is contained in:
albert
2013-04-03 16:39:24 -04:00
parent b2f77268f3
commit e2d132c1f6

View File

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