rails/rails — pull request #4553 by indrekj (2012-01-20 12:26:22+00:00)
Title: Add failing test for date_select

date_select does not work when day is discarded, include blank option is
enabled and struct date itself is nil.

e.g
job = Job.new
job.date_from #=> nil

form_for job do |f|
f.date_select :date_from, :discard_day => true, :include_blank => true
This generates

As you can see, value="1" is not generated and the record can't be saved correctly in the AR.

This problem also exists in 3-2-stable.