Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

match method in router without specifying an HTTP method #3

Open
Kedrigern opened this issue Oct 3, 2015 · 3 comments
Open

match method in router without specifying an HTTP method #3

Kedrigern opened this issue Oct 3, 2015 · 3 comments

Comments

@Kedrigern
Copy link

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
Copy link

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

@ilkosta
Copy link

ilkosta commented May 27, 2016

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
Copy link

ilkosta commented Sep 9, 2016

sorry to see abandoned projects.
switched to tHeCh0s3n0n3/redmine_cors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants