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.

date select within fields for and index = nil

#1665

fields_for "user", :index => nil do |ff| ff.date_select :dob end

renders as:

Reported by Josh · December 29th, 2008 @ 09:19 PM

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

Activity

  1. Josh
    Josh

    Sorry, the formatting didn't work before

    fields_for "user", :index => nil do |ff|

    ff.date_select :dob

    end

    renders as:

    select id="user_dob_1i" name="user[dob(1i)]"

    instead of:

    select id="user__dob_1i" name="user[][dob(1i)]"

    like it does with other form tags.

    The is from Rails 2.2.2

    I'm also submitting a patch that fixes date_select with an index within fields_for

    December 29th, 2008 @ 09:22 PM

  2. Josh
    Josh

    Here is the patch I submitted for the date_select with an index within fields_for bug:

    http://rails.lighthouseapp.com/p...

    December 29th, 2008 @ 09:43 PM

  3. Pratik
    Pratik
    • State changed from new to duplicate

    March 12th, 2009 @ 04:51 PM