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

plugin doesn't support redmine 2 #19

Closed cs42 closed 12 years ago

cs42 commented 12 years ago

Trying to install on Redmine 2.0.2 fails

bundle exec rake redmine:plugins:migrate RAILS_ENV=production 

An error occurred while loading the routes definition of redmine_didyoumean plugin (/srv/redmine2/plugins/redmine_didyoumean/config/routes.rb): uninitialized constant ActionDispatch::Routing::Routes.
archonwang commented 12 years ago

I modified the routes.rb file but not fixed the issue. someone should modify other code in the plugin.

the modified routes.rb for 2.0.X. I am not very similar with Rails and I tried it. If there's anything wrong, please modify it yourself. Thanks so much.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ RedmineApp::Application.routes.draw do match 'searchissues', :to => "search_issues#index", :via => :post, :format => 'json' end +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++