This commit is contained in:
albert
2013-03-06 18:42:39 -05:00
parent 09fb5da041
commit 22b8186d1e

View File

@@ -38,8 +38,10 @@ class PostsController < ApplicationController
if @post.errors.any?
@error_message = @post.errors.full_messages.join("; ")
render :template => "static/error", :status => 500
else
elsif params[:tags].present?
redirect_to post_path(@post, :tags => params[:tags])
else
redirect_to post_path(@post)
end
end