better error message for post searches
This commit is contained in:
@@ -3,6 +3,7 @@ class PostsController < ApplicationController
|
|||||||
after_filter :save_recent_tags, :only => [:update]
|
after_filter :save_recent_tags, :only => [:update]
|
||||||
respond_to :html, :xml, :json
|
respond_to :html, :xml, :json
|
||||||
rescue_from PostSets::SearchError, :with => :search_error
|
rescue_from PostSets::SearchError, :with => :search_error
|
||||||
|
rescue_from Post::SearchError, :with => :search_error
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@post_set = PostSets::Post.new(tag_query, params[:page], params[:limit])
|
@post_set = PostSets::Post.new(tag_query, params[:page], params[:limit])
|
||||||
|
|||||||
Reference in New Issue
Block a user