rails/rails — pull request #8012 by MGalv (2012-10-23 05:20:05+00:00)
Title: Fixed typo on ActiveRecord nested_attributes.

When a hash like this is created:

# params = { :member => {
# :name => 'joe', :posts_attributes => [
# { :title => 'Kari, the awesome Ruby documentation browser!' },
# { :title => 'The egalitarian assumption of the modern citizen' },
# { :title => '', :_destroy => '1' } # this will be ignored
# ]
# }}

We can't call the :member attributes like this:

# params['member']

We should call it like this:

# params[:member]