snnrk / redmine_mailwrapper

Plugin for Redmine to rewrite mail according to rules for each projects.
12 stars 1 forks source link

Need explicit routes for Redmine 1.4.x #3

Closed oasiswork closed 12 years ago

oasiswork commented 12 years ago

Hi

From what I understand, Redmine 1.4 removed the default routes mechanism. It breaks this module. Browsing the the Settings page for a project using this module gives the following error:

ActionView::TemplateError (No route matches {:controller=>"mailwrapper_recipients", :project_id=>#<Project id: 29, name: "CFE CGC", description: "", homepage: "", is_public: false, parent_id: 17, created_on: "2012-04-19 09:02:55", updated_on: "2012-04-19 09:02:55", identifier: "cfecgc", status: 1, lft: 8, rgt: 11>, :action=>"add"}) on line #38 of vendor/plugins/redmine_mailwrapper/app/views/mailwrapper_recipients/_show.html.erb:

Looks like you need to set the routes explicitly. See http://www.redmine.org/issues/9778

Adding the default routes mechanism in Redmine's routes.rb as described in this issue works, but that's just a workaround...

Please fix the plugin so we don't have to modify Redmine's source.

Thanks, Nico

snnrk commented 12 years ago

Hi.

I forgot adding routes.rb on last commit. And now I added it.

Thanks.

oasiswork commented 12 years ago

Thanks for that.