diff options
author | George Ogata <george.ogata@gmail.com> | 2009-09-29 11:35:45 -0400 |
---|---|---|
committer | George Ogata <george.ogata@gmail.com> | 2009-09-29 11:35:45 -0400 |
commit | 10f3cf00b8cca86a088fc98fa46fdff0b027a495 (patch) | |
tree | 2dd2a47248a739423fb8810768acfbefeb26807f /activerecord | |
parent | a14a8a6e54803856f298434c2902f5f19005bf52 (diff) | |
download | rails-10f3cf00b8cca86a088fc98fa46fdff0b027a495.tar.gz rails-10f3cf00b8cca86a088fc98fa46fdff0b027a495.tar.bz2 rails-10f3cf00b8cca86a088fc98fa46fdff0b027a495.zip |
Fix creation example in nested attributes.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/nested_attributes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb index cd3b182b09..c808c5191e 100644 --- a/activerecord/lib/active_record/nested_attributes.rb +++ b/activerecord/lib/active_record/nested_attributes.rb @@ -46,7 +46,7 @@ module ActiveRecord # create the member and avatar in one go: # # params = { :member => { :name => 'Jack', :avatar_attributes => { :icon => 'smiling' } } } - # member = Member.create(params) + # member = Member.create(params['member']) # member.avatar.id # => 2 # member.avatar.icon # => 'smiling' # |