Forum: Ruby on Rails has_many in routes.rb

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sijo k. (Guest)
on 2009-01-10 12:16
   I saw
map.namespace(:admin) do |admin|
        admin.resources :accounts, :has_many   => [ :credentials ]

and I wrote like

map.namespace(:admin) do |admin|
        admin.resources :accounts do |account|
                account.resources :credentials

       The only difference I found is, in the first no helper methods
are generated..I would like to know is that the only difference ?If not
on which circumstances we use these two?

Thanks in advance
This topic is locked and can not be replied to.