i have
class Profile has_many :favorite_books, :dependent => :destroy has_many :favorite_quotes, :dependent => :destroy accepts_nested_attribute
There is a built-in validation:
:reject_if => lambda { |c| c[:name].blank? },