Sidebar Redmine 3.0.0
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.