girishso / rails-client-logger

Rails engine for logging from Browser Javascript to server
MIT License
25 stars 14 forks source link

When using match in routes.rb you need to specify a the method. #7

Closed aussiDavid closed 8 years ago

aussiDavid commented 8 years ago

it causes the following error otherwise.

ArgumentError (You should not use the `match` method in your router without specifying an HTTP method.
If you want to expose your action to both GET and POST, add `via: [:get, :post]` option.
If you want to expose your action to GET, use `get` in the router:
  Instead of: match "controller#action"
  Do: get "controller#action"):
  config/routes.rb:132:in `block in <top (required)>'
  config/routes.rb:3:in `<top (required)>'
girishso commented 8 years ago

What version of rails and gem are you using?

On 18-Jul-2016, at 11:28 PM, aussiDavid notifications@github.com wrote:

it causes the following error otherwise.

ArgumentError (You should not use the match method in your router without specifying an HTTP method. If you want to expose your action to both GET and POST, add via: [:get, :post] option. If you want to expose your action to GET, use get in the router: Instead of: match "controller#action" Do: get "controller#action"): config/routes.rb:132:in block in <top (required)>' config/routes.rb:3:in<top (required)>' You can view, comment on, or merge this pull request online at:

https://github.com/girishso/rails-client-logger/pull/7

Commit Summary

When using match in routes.rb you need to specify a the method. File Changes

M README.md (2) Patch Links:

https://github.com/girishso/rails-client-logger/pull/7.patch https://github.com/girishso/rails-client-logger/pull/7.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

aussiDavid commented 8 years ago

Ruby '2.2.3' Rails '4.2.5' rails-client-logger '1.1.0'