blinking bear
2007-Nov-30 17:51 UTC
nested restful route param automagically populated on current page?
I''ve been trying to figure out why this works.. link_to "foo", admin_comments_url() comments are a nested route of blogs, so it seems like that method would need the the blog param: admin_comments_url(@blog) However, when I''m already on this page /admin/blogs/1/comments, I don''t need to pass in the @blog param. Is this something that just happens magically behind the scenes? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---