This project is archived and is in readonly mode.

#554 ✓duplicate
RSL

Fix fields_for with :index missing index on form option helpers

Reported by RSL | July 5th, 2008 @ 10:42 PM | in 2.x

In FormHelper helpers [text_field, etc] the :index option from fields_for is merged into options for to_text_field_tag [etc] tag. The FormOptionHelpers do not do this and the select tag helpers end up missing the index set in the fields_for. This patch just replicates the @default_options merge from FormHelper#objectify_options as FormHelper#defaultify_options which merges @default_options with the html_options.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages