Class: Humpyard::ErrorsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/humpyard/errors_controller.rb

Instance Method Summary collapse

Instance Method Details

#error404Object

Raises:

  • (ActionController::RoutingError)


5
6
7
# File 'app/controllers/humpyard/errors_controller.rb', line 5

def error404
  raise ActionController::RoutingError, "No route matches \"#{request.path}\""
end