mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
530e5ff910
When you ask to generate multiple nested inputs using: field_for('comments[]', Comment.new) do |c| c.text_field :body Rails should generated the names like `post[comments][][body]`. To make sure we don't have regression the fake models now use the same implementation of `#to_param` as `ActiveRecord::Base` Fixes #26942 |
||
---|---|---|
.. | ||
fake_models.rb |