Permalink
Browse files

Fix doc examples for has_and_belongs_to_many association

  • Loading branch information...
1 parent 30feb8c commit 357e288f4470f484ecd500954fd17fba2512c416 @bschaeffer bschaeffer committed with vijaydev Mar 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations.rb
@@ -1513,8 +1513,8 @@ def belongs_to(name, options = {})
# * <tt>Developer#projects.size</tt>
# * <tt>Developer#projects.find(id)</tt>
# * <tt>Developer#projects.exists?(...)</tt>
- # * <tt>Developer#projects.build</tt> (similar to <tt>Project.new("project_id" => id)</tt>)
- # * <tt>Developer#projects.create</tt> (similar to <tt>c = Project.new("project_id" => id); c.save; c</tt>)
+ # * <tt>Developer#projects.build</tt> (similar to <tt>Project.new("developer_id" => id)</tt>)
+ # * <tt>Developer#projects.create</tt> (similar to <tt>c = Project.new("developer_id" => id); c.save; c</tt>)
# The declaration may include an options hash to specialize the behavior of the association.
#
# === Options

0 comments on commit 357e288

Please sign in to comment.