Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Fix fields_for with :index missing index on form option helpers

#554

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.

Reported by RSL · July 5th, 2008 @ 10:42 PM

State: duplicate
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. RSL
    RSL

    Err... FormBuilder#objectify_options and FormBuilder#defaultify_options. ;)

    July 5th, 2008 @ 10:54 PM

  2. Kevin Glowacz
  3. RSL
    RSL

    Close this ticket then.

    July 7th, 2008 @ 02:19 AM

  4. Pratik
    Pratik
    • State changed from new to duplicate

    July 14th, 2008 @ 04:37 AM