themondays / redmine_worktime_log

Redmine Worktime Log Plugin
11 stars 7 forks source link

I can't install the plugin #6

Open PamelaBeatriz opened 8 years ago

PamelaBeatriz commented 8 years ago

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, 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".

I'll add a Pull Request shortly.

Redmine 2.5.2

themondays commented 8 years ago

Thank you @PamelaBeatriz, pretty loaded right now, I will check as soon as possible.

tuliobmachado commented 7 years ago

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 ...

juliomar commented 7 years ago

tuliobmachado Bom dia! poderia anexar ou efetuar um pull request com sua alteração?