These rescuers are quite handy to prevent nasty errors in production.
# in application_controller.rb
rescue_from ActionController::RoutingError, :with => :route_not_found
rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found
rescue_from ActionController::MethodNotAllowed, :with => :invalid_method
rescue_from NoMethodError, :with => :show_error
rescue_from ActionView::TemplateError, :with => :template_not_found
private
def route_not_found
render :text => ‘Sorry, we could not find what you were looking for.’, :status => :not_found
end
etc.