How can I limit the number of rows returned in a has many relationship? For example:
class User < ActiveRecord::Base has_many :photos end
You can put a :limit on the actual has_many declaration.
:limit
has_many
class User < ActiveRecord::Base has_many :photos, :limit => 8 end