better error message for post searches

This commit is contained in:
albert
2013-02-20 14:33:53 -05:00
parent 118555c3c2
commit fa67aa1996

View File

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