I compared the output from ``rake routes'' for each solution below,  
and they both produce the exact same routes. Is one solution preferred  
over the over?

# Solution #1:
map.resource  :account do |account|
   account.resources :properties, :controller => 'account/properties'
   account.resources :photos, :controller => 'account/photos'
end

# Solution #2:
map.resource  :account
map.namespace :account do |account|
   account.resources :photos
   account.resources :properties
end

Cheers,
Nick

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to