From fa67aa199646fc48c2e68df0d87aaa4da609df1a Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 20 Feb 2013 14:33:53 -0500 Subject: [PATCH] better error message for post searches --- app/controllers/posts_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 5f5f11852..65488a56b 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -3,6 +3,7 @@ class PostsController < ApplicationController after_filter :save_recent_tags, :only => [:update] respond_to :html, :xml, :json rescue_from PostSets::SearchError, :with => :search_error + rescue_from Post::SearchError, :with => :search_error def index @post_set = PostSets::Post.new(tag_query, params[:page], params[:limit])