mavimo / redmine_cors

Redmine plugin to allow external application to use Redmine REST API with cross-origin resource sharing
11 stars 22 forks source link

match method in router without specifying an HTTP method #3

Open Kedrigern opened 9 years ago

Kedrigern commented 9 years ago

Redmine version: 3.1.1

After successful installing plugin dependencies, I get:

Migrating plugins. Please be patient, this could take a while...
An error occurred while loading the routes definition of redmine_cors plugin (/home/redmine/redmine/plugins/redmine_cors/config/routes.rb): 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".
RazZziel commented 9 years ago

I'm having the same problem, but this better maintained fork works for me.

ilkosta commented 8 years ago

same error, tested with

docker run -d --name rm \
    --link rm_pg:postgres \
    -v "$PWD/redmine/plugins":"/usr/src/redmine/plugins" \
    redmine
Bundled gems are installed into /usr/local/bundle.
/usr/local/bundle/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"
/usr/local/bundle/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"
An error occurred while loading the routes definition of redmine_cors plugin (/usr/src/redmine/plugins/redmine_cors/config/routes.rb): 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".

the error is the same with the fork of @mcfedr

ilkosta commented 8 years ago

sorry to see abandoned projects. switched to tHeCh0s3n0n3/redmine_cors