*name in Rails routes?

I’ve created a route with a trailing *name component like this

map.connect ‘foo/bar/*path’

which will hopefully map routes of the form

foo/bar/u/f/a to

:controller => foo
:action -> bar
:path => [“u”, “f”, “a”]

However, I’m not quite sure how to write the corresponding url_for to
generate this sort of url. For example

url_for :controller => “foo”, :action => “bar”, :path => [“u”, “f”, “a”]

doesn’t do what I want. Nor does

url_for {:controller => “foo”, :action => “bar”}, [“u”, “f”, “a”]

How does one write the correct url_for to generate the type of URL I’m
looking for? Sorry for the noob question, but I’m pretty new to
Rails…

– bb

Just a guess, but try :path => [“u”,“f”,“a”].join(“/”)

On Nov 5, 12:35 pm, Aaron C. [email protected]