From 10f3cf00b8cca86a088fc98fa46fdff0b027a495 Mon Sep 17 00:00:00 2001 From: George Ogata Date: Tue, 29 Sep 2009 11:35:45 -0400 Subject: Fix creation example in nested attributes. --- activerecord/lib/active_record/nested_attributes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') 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' # -- cgit v1.2.3