aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorLuis M <lm.galaviz@live.com.mx>2012-10-23 01:05:00 -0500
committerLuis M <lm.galaviz@live.com.mx>2012-10-23 01:05:00 -0500
commit6004fd336a95b2f951042d9c231f58b762582e75 (patch)
tree863f6aa303837fa101ebbe82f60cc1fbede4923a /activerecord/lib/active_record
parent2ef4d5ed5cbbb2a9266c99535e5f51918ae3e3b6 (diff)
downloadrails-6004fd336a95b2f951042d9c231f58b762582e75.tar.gz
rails-6004fd336a95b2f951042d9c231f58b762582e75.tar.bz2
rails-6004fd336a95b2f951042d9c231f58b762582e75.zip
Fixed typo on ActiveRecord nested_attributes.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/nested_attributes.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb
index 2e7fb3bbb3..43f908ae5f 100644
--- a/activerecord/lib/active_record/nested_attributes.rb
+++ b/activerecord/lib/active_record/nested_attributes.rb
@@ -109,7 +109,7 @@ module ActiveRecord
# ]
# }}
#
- # member = Member.create(params['member'])
+ # member = Member.create(params[:member])
# member.posts.length # => 2
# member.posts.first.title # => 'Kari, the awesome Ruby documentation browser!'
# member.posts.second.title # => 'The egalitarian assumption of the modern citizen'
@@ -131,7 +131,7 @@ module ActiveRecord
# ]
# }}
#
- # member = Member.create(params['member'])
+ # member = Member.create(params[:member])
# member.posts.length # => 2
# member.posts.first.title # => 'Kari, the awesome Ruby documentation browser!'
# member.posts.second.title # => 'The egalitarian assumption of the modern citizen'
@@ -181,7 +181,7 @@ module ActiveRecord
# :posts_attributes => [{ :id => '2', :_destroy => '1' }]
# }}
#
- # member.attributes = params['member']
+ # member.attributes = params[:member]
# member.posts.detect { |p| p.id == 2 }.marked_for_destruction? # => true
# member.posts.length # => 2
# member.save