For example I have a blog object, and that blog has many posts. I want to do eager loading of say the first blog object and include say the first 10 posts of it. Currently I
You need to limit the number of posts in your blog model like this:
class Blog < ActiveRecord::Base has_many :included_posts, :class_name => 'Post', :limit => 10 has_many :posts end
So then you can do:
$ Blog.first.included_posts.count => 10 $ Blog.first.posts.count => 999