Duane Johnson
2005-May-27 22:20 UTC
Why won''t a :controller beginning with "/" route to the root?
I have the following link_to in my application layout (used throughout the site): <%= link_to :controller => "/info", :action => "welcome" %> When not inside a module, it works as expected. However, inside of my "admin" module (e.g. from "/admin/dashboard/index"), clicking on this link (and others like it) routes to "/admin/info/welcome". This is obviously not the expected behaviour. Is there some sort of configuration I might be missing? Any thoughts? Thank-you, Duane Johnson (canadaduane)
Duane Johnson
2005-May-27 22:27 UTC
Re: Why won''t a :controller beginning with "/" route to the root?
Never mind. I had some code in another area that was stripping off the "/" :) On May 27, 2005, at 4:20 PM, Duane Johnson wrote:> I have the following link_to in my application layout (used > throughout the site): > > <%= link_to :controller => "/info", :action => "welcome" %> > > When not inside a module, it works as expected. However, inside of > my "admin" module (e.g. from "/admin/dashboard/index"), clicking on > this link (and others like it) routes to "/admin/info/welcome". > This is obviously not the expected behaviour. Is there some sort > of configuration I might be missing? Any thoughts? > > Thank-you, > Duane Johnson > (canadaduane) >