On May 25, 2014, at 2:12 AM, Ronald Fischer wrote:

> Thanks for the explanation! I noticed your response only now, and it 
> would have at least partially answered my other question I had posted in 
> this forum too  ;-)
> 
> I think I get the idea with nested routing now. What I still don't 
> understand is a *syntactic* issue: How to map this feature to the API 
> description. Looking at, for example,
> 
> http://apidock.com/rails/ActionView/Helpers/UrlHelper/link_to
> 
> I can not find a link_to with a signature which would allow for an array 
> as the second parameter. Is this an omission from the API description 
> (which I maybe should report to the maintainers), or did I just look at 
> the wrong place?

Think of the array of elements as the first variable passed to the method. You 
can have three or more elements in that array, if that's how deep the nesting 
goes. But the array itself is the first variable, and in that limited way of 
looking at this, means that the documentation is correct to a point. I agree, 
it would be good if there was a signature showing this in the API docs. Good 
thing that Rails is open source -- you can get a commit out of this if you 
write it up and submit a pull request on GitHub!

Walter

> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/7331344edac494094c8eeaf648c68c48%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/2BF0D48C-AF8F-4438-93CF-730939ED2E2E%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to