app/controllers/application_controller.rb
def limit_page_param_for_thinking_sphinx
    if !params[:page].blank? && params[:page].to_i > 50 
      render_404 
    end 
  end
# ThinkingSphinx returns a maximum of 50 pages. Anything higher than 
# that, we want to 404 to avoid a TS error. 
ThinkingSphinx returns a maximum of 50 pages. Anything higher than
that, we want to 404 to avoid a TS error.
ThinkingSphinx returns a maximum of 50 pages . Anything higher than that we want to 404 to avoid a TS error .
def limit_page_param_for_thinking_sphinx
    if !params[:page].blank? && params[:page].to_i > 50 
      render_404 
    end 
  end
def limit_page_param_for_thinking_sphinx if ! params [ :page ] . blank? && params [ :page ] . to_i > 50 render_404 end end
ThinkingSphinx returns a maximum of 50 pages.
ThinkingSphinx returns a maximum of 50 pages .