abahgat / redmine_didyoumean

A Redmine plugin to search for possible duplicates when users are about to open new issues.
Other
68 stars 45 forks source link

Port to Redmine 3.0 #72

Closed dalemarchand closed 9 years ago

dalemarchand commented 9 years ago

Would like be able to use this plugin with a Redmine 3.0 installation.

Androc commented 9 years ago

Did you try ? What was the error ?

dalemarchand commented 9 years ago

Our sysadmin tried it and said it failed. Let me try to get the errors from him and I'll post them.

Androc commented 9 years ago

Would be great because "it does not work" does not help at all :)

dalemarchand commented 9 years ago

Sorry. I (should) know better.

Androc commented 9 years ago

Don't worry, it is not always easy to report a but if it is not you who found it.

dalemarchand commented 9 years ago

Oh, its definitely easy to report a bug you don't find yourself. I get those all the time.

Its just not easy to do it well.

Androc commented 9 years ago

That is what I meant ;)

dalemarchand commented 9 years ago

Here's our Redmine installation: Environment: Redmine version 3.0.3.stable Ruby version 2.2.2-p95 (2015-04-13) [x86_64-linux] Rails version 4.2.1 Environment production Database adapter Mysql2 SCM: Git 1.9.1 Filesystem
Redmine plugins: no plugin installed

When we run:

rake redmine:plugins:migrate NAME=redmine_didyoumean VERSION=0 RAILS_ENV=production

We get this error output:

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

Androc commented 9 years ago

Ok. Thanks. I will have a look tomorrow to the code, if I can help.

dalemarchand commented 9 years ago

Thanks but in true crappy bug reporting fashion. my admin now reports that he was able to get it working once we tried the current source (instead of the 1.2.0 version from 2012) and he loaded a couple of gems he was missing. Sorry to waste your time.

Androc commented 9 years ago

Good news :)