Skip to content

Instantly share code, notes, and snippets.

@manusajith
Last active December 10, 2015 22:08
Show Gist options
  • Save manusajith/4499936 to your computer and use it in GitHub Desktop.
Save manusajith/4499936 to your computer and use it in GitHub Desktop.
To catch all routes and get rid of the “No route matches” error, you can add something like the following to config/routes.rb
map.connect '*path', :controller => "pages", :action => "show"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment