I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Patch #2363

Sidebar Redmine 3.0.0

Added by Adrian Antonana almost 10 years ago. Updated over 8 years ago.

Status:
Under Verification
Priority:
Normal
Assignee:
Target version:
Start date:
12 Mar 2015
Due date:
% Done:

0%

Redmine version:
External issue:

Description

When migrating to Redmine 3.0.0-stable (GIT), the rake db:migrate RAILS_ENV=production command was throwing following error:

An error occurred while loading the routes definition of sidebar plugin (/opt/redmine/redmine/plugins/sidebar/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".

Subsituting the “match” strings with “get”, as suggested by the error message, seems to solve the issue. Patch attached.

routes.rb.patch View (533 Bytes) Adrian Antonana, 12 Mar 2015 12:36

Associated revisions

Revision 43 (diff)
Added by Andriy Lesyuk over 8 years ago

Support Redmine 3.x (#2363)

History

#1 Updated by Andriy Lesyuk over 8 years ago

  • Status changed from New to Under Verification
  • Target version set to 0.2.0

Also available in: Atom PDF

Terms of use | Privacy policy