This project is archived and is in readonly mode.

#1665 ✓duplicate
Josh

date select within fields for and index = nil

Reported by Josh | December 29th, 2008 @ 09:19 PM | in 2.x

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

renders as:

Comments and changes to this ticket

  • Josh

    Josh December 29th, 2008 @ 09:22 PM

    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

  • Josh

    Josh December 29th, 2008 @ 09:43 PM

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

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

  • Pratik

    Pratik March 12th, 2009 @ 04:51 PM

    • 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>

People watching this ticket

Referenced by

Pages