From b49fcde7e50c8eb378e7b1ae08f65c70f6de20e4 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Wed, 25 Jul 2007 03:05:55 +0000 Subject: tiny doc patches [lifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/associations.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index b9839a8500..21f1992d69 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -586,8 +586,8 @@ module ActiveRecord # * collection.empty? - returns true if there are no associated objects. # * collection.size - returns the number of associated objects. # * collection.find - finds an associated object according to the same rules as Base.find. - # * collection.build(attributes = {}) - returns a new object of the collection type that has been instantiated - # with +attributes+ and linked to this object through a foreign key but has not yet been saved. *Note:* This only works if an + # * collection.build(attributes = {}, ...) - returns one or more new objects of the collection type that have been instantiated + # with +attributes+ and linked to this object through a foreign key but have not yet been saved. *Note:* This only works if an # associated object already exists, not if it's nil! # * collection.create(attributes = {}) - returns a new object of the collection type that has been instantiated # with +attributes+ and linked to this object through a foreign key and that has already been saved (if it passed the validation). -- cgit v1.2.3