> Album.find(:all, :limit => 10, :include => :songs, :conditions => > 'songs.active = 1') > # join in prequery, conditions in prequery
Check the prequery for : Album.find(:all, :limit => 10, :include => [:songs, :artists], :conditions => 'songs.active = 1') -- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
