#388 new
Deleted User

select_date broken with formtastic

Reported by Deleted User | August 7th, 2010 @ 03:03 AM

The select_date method blows up when a label's "for" attribute is set to a component date element ID (as is the case date selects generated with formtastic). For example, webrat can't handle:

  <label for="appointment_date_1i">Date</label>
  <select id="appointment_date_1i" name="appointment[date(1i)]">
    <option value="2003">2003</option>
  </select>
  <select id="appointment_date_2i" name="appointment[date(2i)]">
    <option value="12">December</option>
  </select>
  <select id="appointment_date_3i" name="appointment[date(3i)]">
    <option value="25">25</option>
  </select>

This markup is actually semantically correct, as the for attribute should point to an element ID which actually exists (appointment_date_1i).

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages