This project is archived and is in readonly mode.
![RSL RSL](https://entp-lh-avatar-production.s3.amazonaws.com/avatars/9830/large.jpg?AWSAccessKeyId=AKIAJ4QBZRZBVMOUBNZA&Expires=2014449563&Signature=Qk%2Fk%2BQV03G3qGDBWPlZBK6hQTfk%3D)
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
-
RSL July 5th, 2008 @ 10:54 PM
Err... FormBuilder#objectify_options and FormBuilder#defaultify_options. ;)
-
-
-
Pratik July 14th, 2008 @ 04:37 AM
- State changed from new to duplicate
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>