Open PamelaBeatriz opened 8 years ago
Thank you @PamelaBeatriz, pretty loaded right now, I will check as soon as possible.
Hello @PamelaBeatriz I got the same error while trying to install, but following the new syntax my routes.rb file looks like this:
match "users/:id/worktime", :to => "worktimelog#user_summary", :via => [:get, :post] match "issues/:issue_id/worktime", :to => "worktimelog#issue_summary", :via => [:get, :post] match "projects/:project_id/worktime", :to => "worktimelog#project_summary", :via => [:get, :post]
NOTE: I only changed the 3 "matches" in the file and I was able to install normally ...
tuliobmachado Bom dia! poderia anexar ou efetuar um pull request com sua alteração?
An error occur when i try to run: rake redmine:plugins NAME=redmine_worktime_log RAILS_ENV=production
See: An error occurred while loading the routes definition of redmine_worktime_log plugin (/usr/share/redmine/plugins/redmine_worktime_log/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, addvia: [:get, :post]
option. If you want to expose your action to GET, useget
in the router: Instead of: match "controller#action" Do: get "controller#action".I'll add a Pull Request shortly.
Redmine 2.5.2