Rails catch-all/globbing routes

put

match '*path' => 'your_controller#your_action'

at the end of the routes.rb file. This is important, since the routes are stepped through top down.

See also http://guides.rubyonrails.org/routing.html -> 3.10

Leave a Comment