Forum: Ruby on Rails has_many in routes.rb

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

and I wrote like

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

       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
Sijo
This topic is locked and can not be replied to.