Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/exceptionally_beautiful/routes.rb

Instance Method Summary collapse

Instance Method Details

#exceptionally_beautiful_routesObject



5
6
7
8
9
# File 'lib/exceptionally_beautiful/routes.rb', line 5

def exceptionally_beautiful_routes
  match '(errors)/:status', :to => "#{ExceptionallyBeautiful.controller}##{ExceptionallyBeautiful.action}",
                            :constraints => ExceptionallyBeautiful::RoutingConstraint.new, :via => :all,
                            :as => :exceptionally_beautiful_error
end