rails/strong_parameters — pull request #25 by erichmenge (2012-07-11 13:59:19+00:00)
Title: Support fields_for attributes, which may have numeric symbols as hash keys

fields_for will use numeric hash keys when used on a collection of records. Ex:

``` ruby
# ...
@company.users.new
# ...
```

``` erb
<%= f.fields_for :users %>
```

This patch will treat this hash similarly to an array. The hash itself is not mutated so there should be no side effects, and it only affects hashes in which all keys are numeric.

Relates to #24 and closes #16.

This patch may be seen as a work in progress. There may be better ways to implement this so feedback is of course welcome.