padrino/padrino-framework — pull request #1257 by jeffutter (2013-04-24 05:32:04+00:00)
Title: Add a test to show use case for routing priority

This test shows a (currently failing) use case for routing priority as it worked in 0.10 but seems to be broken in 0.11.

In my app I have a bunch of urls that related to 'pages' the content of which is stored in a DB. These need to be accessed at /:page_name . I also have some controllers with more 'hard coded' pages (shopping cart/contact form, etc.) The problem is the index route in the app.rb should be the last possible route after all the controllers. As it stands it is about the 3rd route... before all of the controllers and thus catches everything resembling a controller.