Having this route:
map.foo 'foo/*path', :controller => 'foo', :action => 'index'
I have the following results for calling link_to
link_to "Foo", :controller => 'foo', :path => 'bar/baz'
Calling url_foreither foo_urldirectly, even with :escape => false, give me the same url:
foo_url(:path => 'bar/baz', :escape => false, :only_path => true)
I want the resulting URL to be: /foo/bar/baz
Is there any way around this without fixing the rails?
source
share