bigbinary/admin_data — Issue #84: question re: routes and globbing
Author: nat
Created: 2011-10-11 18:17:04+00:00
State: open

I'm using Rails 3.0 and I have a final rule in my routes.rb to match anything that wasn't found above and redirect to a 404 page:
match "*path" => 'errors#show'

if I use this rule then it always gets triggered and I never get to see /admin_data.
When I uncomment it, everything works.
Do you know if there is there an easy solution for this situation besides disabling my Glob-redirect-to-404?

FYI: If I only add this before the glob:
match '/admin_data', :to => 'admin_data/home#index'
the page loads, but all the public assets are missing (they're being looked for under: /admin_data/public and those route-adds are probably behind the glob.

Many thanks!!
Nat Wharton