I'd apply a patch which would Dan's style work.
Please do investigate :)
>
> # routes.rb
> map.namespace :admin do |a|
> a.resources :workshops do |w|
> w.resources :sessions
> end
> end
>
> # views
> <%= url_for([:admin, @workshop, @session]) %>
> <%= link_to('Session', [:admin, @workshop, @session]) %>
> <% form_for([:admin, @workshop, @session] do |f| %>
> # ...
> <% end %>
>
> The symbol would correspond to the namespace, and could be made to
> handle nested namespaces.
--
Tobi
http://shopify.com - modern e-commerce software
http://typo.leetsoft.com - Open source weblog engine
http://blog.leetsoft.com - Technical weblog
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---