Serafino Picozzi wrote: > Hi! > > I have a problem related to polymorphic associations. > Currently in my routes i define the following: > > map.resources :articles do |articles| > articles.resources :comments > end > > map.resources :posts do |posts| > posts.resources :comments > end > try this map.resources :articles ,:has_many=>:comments map.resources :posts ,:has_many=>:comments
-- 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 -~----------~----~----~----~------~----~------~--~---

