From 22b8186d1e94673507efec93ac55b9ab2ec9dcc0 Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 6 Mar 2013 18:42:39 -0500 Subject: [PATCH] fixes #782 --- app/controllers/posts_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index af0935fcf..dd0290b1d 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -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