Created
          September 13, 2012 00:49 
        
      - 
      
- 
        Save rjz/3711067 to your computer and use it in GitHub Desktop. 
    Rails catch-all routes with Jasminerice
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 | 
Exactly what I needed as well, Thanks.
+1
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Exactly what I needed. Thanks!