It has nothing to do with polymorphism. You'll want to look into eager loading for your associations if you want to avoid those queries.
http://railscasts.com/episodes/22 -e On Feb 27, 9:58 am, Arpit Jain <[email protected]> wrote: > Can anyone explain to me the sql query done in the last step : > > http://pastie.org/402200 > > -- > Arpit Jain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

