Skip to content

Instantly share code, notes, and snippets.

@olivierlacan
Created October 24, 2012 17:24
Show Gist options
  • Save olivierlacan/3947479 to your computer and use it in GitHub Desktop.
Save olivierlacan/3947479 to your computer and use it in GitHub Desktop.
You should not use the `match` method in your router without specifying an HTTP method. (RuntimeError)
If you want to expose your action to GET, use `get` in the router:
Instead of: match "controller#action"
Do: get "controller#action"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment