class ApplicationController

Public Instance Methods

not_found() click to toggle source
# File app/controllers/application_controller.rb, line 4
def not_found
  raise ActionController::RoutingError.new('Not Found')
end

Private Instance Methods

render_error(status, exception) click to toggle source

end

# File app/controllers/application_controller.rb, line 16
def render_error(status, exception)
  respond_to do |format|
    format.html { render template: "errors/error_#{status}", layout: 'layouts/application', status: status }
    format.all  { render nothing: true, status: status }
  end
end