Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct parameter access.

* The params as supplied pass born in authors[0] but not authors[1] so it seems like the test isn't covering what it should be covering.
  • Loading branch information...
commit 45d6944afa5ec410535f6d36c4354d215b4090c3 1 parent fb0c845
@parndt parndt authored
View
2  actionpack/test/controller/parameters/nested_parameters_test.rb
@@ -28,7 +28,7 @@ class NestedParametersTest < ActiveSupport::TestCase
assert_equal "Christopher Marlowe", permitted[:book][:authors][1][:name]
assert_equal 200, permitted[:book][:details][:pages]
assert_nil permitted[:book][:details][:genre]
- assert_nil permitted[:book][:authors][1][:born]
+ assert_nil permitted[:book][:authors][0][:born]
assert_nil permitted[:magazine]
end
Please sign in to comment.
Something went wrong with that request. Please try again.