Skip to content

Instantly share code, notes, and snippets.

@rjz
Created September 13, 2012 00:49
Show Gist options
  • Save rjz/3711067 to your computer and use it in GitHub Desktop.
Save rjz/3711067 to your computer and use it in GitHub Desktop.
Rails catch-all routes with Jasminerice
My::Application.routes.draw do
# Include route definitions here
# ...
# Delegate +/jasmine+ routes to Jasminerice in development only
# see: https://github.com/bradphelan/jasminerice/blob/master/config/routes.rb
if Rails.env.development?
mount Jasminerice::Engine => '/jasmine'
end
# Catch-all route passes handling to +ErrorsController.routing+
# see: http://techoctave.com/c7/posts/36
match '*a', :to => 'errors#routing'
end
@tyrw
Copy link

tyrw commented Oct 24, 2012

Exactly what I needed. Thanks!

@kstevens715
Copy link

Exactly what I needed as well, Thanks.

@sjobe
Copy link

sjobe commented Mar 13, 2013

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment