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



3
4
5
6
# File 'lib/exceptionally_beautiful/routes.rb', line 3

def exceptionally_beautiful_routes
  match '(errors)/:status', :to => "#{ExceptionallyBeautiful.controller}##{ExceptionallyBeautiful.action}",
                            :constraints => { :status => /\d{3}/ }, :via => :all
end