Lets say you have a two models with blog posts and comments set up like this: class post has_many :comments