Just a guess, but try :path =>
["u","f","a"].join("/")
On Nov 5, 12:35 pm, Aaron Chase
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---