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
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to