From a75afbdd82fcc1a4799af45fb742af674ba31002 Mon Sep 17 00:00:00 2001 From: Braden Schaeffer Date: Mon, 5 Mar 2012 11:35:20 -0600 Subject: Fix doc examples for has_and_belongs_to_many association --- activerecord/lib/active_record/associations.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record/associations.rb') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 958821add6..b1a5110e2d 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1512,8 +1512,8 @@ module ActiveRecord # * Developer#projects.size # * Developer#projects.find(id) # * Developer#projects.exists?(...) - # * Developer#projects.build (similar to Project.new("project_id" => id)) - # * Developer#projects.create (similar to c = Project.new("project_id" => id); c.save; c) + # * Developer#projects.build (similar to Project.new("developer_id" => id)) + # * Developer#projects.create (similar to c = Project.new("developer_id" => id); c.save; c) # The declaration may include an options hash to specialize the behavior of the association. # # === Options -- cgit v1.2.3