delaitre/redmine_time_tracker — pull request #67 by DimaD (2012-02-01 05:55:49+00:00)
Title: Use preceding slash to anchor controller name in all code generating links to TimeTracker controller

I copy description from the commit because I think it describes the problem well:

If somebody uses namespaced controllers in their code rails will to
generate namespaced links. Let's say you have controller with full name
*CompanyName::OfficesController* and have views rendered in it. All URLs
generated for this plugin, for example from this code:

{ :controller => 'issues', :action => 'show', :id => time_tracker.issue_id }

will have prefix */company_name/*, in this case:

/company_name/issues/4242

which is wrong. To preven it you need to prefix all controller names with slashes
or use named routes.

You can read more about namespaces and routing here:

http://guides.rubyonrails.org/v2.3.11/routing.html#controller-namespaces-and-routing