delaitre/redmine_time_tracker — Issue #70: Fix Ruby routes due to Redmine changes
Author: delaitre
Created: 2012-03-08 08:45:23+00:00
State: open
Labels: Bug, Patch

Redmine has removed the default routes. Thus, each plugin must define them explicitly as described here:
http://www.redmine.org/boards/3/topics/12026?r=29406#message-29406

Egidijus Zideckas says in his message:

> In case someone still has problems with Redmine not finding route, I found a solution (inspired by:
> http://www.redmine.org/issues/9778 and http://www.informit.com/articles/article.aspx?p=1087656&seqNum=5).
> It seems > that Redmine changed routes configuration in config/routes.rb and since then most plugins suffer
> similar way. To solve this, you need to add new file in plugin folder:
>
> config/routes.rb:
> ActionController::Routing::Routes.draw do |map|
> map.connect '/time_trackers/stop', :controller => 'time_trackers', :action => 'stop'
> map.connect '/time_trackers/start', :controller => 'time_trackers', :action => 'start'
> map.connect '/time_trackers/suspend', :controller => 'time_trackers', :action => 'suspend'
> map.connect '/time_trackers/resume', :controller => 'time_trackers', :action => 'resume'
> map.connect '/time_trackers/render_menu', :controller => 'time_trackers', :action => 'render_menu'
> map.connect '/time_trackers/show_report', :controller => 'time_trackers', :action => 'show_report'
> map.connect '/time_trackers/delete', :controller => 'time_trackers', :action => 'delete'
> map.connect '/time_trackers', :controller => 'time_trackers', :action => 'index'
> end
>
> This solved problem for me