> > manufacturer = Manufacturers.first(:include > => :manuf_description, :conditions => ["id = ? AND > manuf_descriptions.locale = ?", manufacturer_id, locale]) > > > Then again if you're only loading one record at a time, the overhead > of the generated eager loading query *might* not outweight the cost of > the second DB call when you call manufacturer.description (or > whatever).
Hey thanks a lot. That works great and don't need to do the eager loading query because all the information I need is right there in the resulting hash. -- 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 -~----------~----~----~----~------~----~------~--~---

