On 6/5/07, Jonathan Vaught <[EMAIL PROTECTED]> wrote:
> I've reopened ticket #6432, which patched simply_helpful to allow
> polymorphic URL generation for nested resources.
>
> Since simply_helpful has been merged into core, I rewrote the patch
> for ActionPack. It implements the following usage:
>
> # Routes.rb
> map.resources :workshops do |w|
> w.resources :sessions
> end
>
> # View
> <%= url_for([EMAIL PROTECTED], @session]) %>
> <%= link_to('Session', [EMAIL PROTECTED], @session]) %>
> <% form_for([EMAIL PROTECTED], @session] do |f| %>
> # ...
> <% end %>
>
> http://dev.rubyonrails.org/ticket/6432
>
> Thoughts?
Looks great. Thanks Jonathan!
jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---