rails/actionview/test/lib/controller
Rafael Mendonça França 530e5ff910
Generate indexed names in input even when objects are not persisted
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
2017-01-03 16:47:13 -05:00
..
fake_models.rb Generate indexed names in input even when objects are not persisted 2017-01-03 16:47:13 -05:00