# Date\_select Doesn't Support Multiple Records? No \[\]?

**URL:** <https://www.ruby-forum.com/t/date-select-doesnt-support-multiple-records-no/70413>\
**Category:** Rails\
**Created:** [September 29, 2006, 12:44am UTC](https://www.ruby-forum.com/t/date-select-doesnt-support-multiple-records-no/70413 "2006-09-29T00:44:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HHHHHH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Post date:** [September 29, 2006, 12:44am UTC](https://www.ruby-forum.com/t/date-select-doesnt-support-multiple-records-no/70413/1 "2006-09-29T00:44:10Z")

</div>

I am submitting multiple records in a single POST.

I am trying to use date\_select as follows:

\<%= date\_select(‘event\_date[]’, :occurs\_at) %\>

Usually, the [] in the object name instructs the tag to put the object  
ID in  
the generated HTML. Works fine for all the other tags but date\_select  
seems  
to ignore it.

I’m hoping that I am doing something wrong and date\_select doesn’t have  
a  
bug…

Anyone know?

Thanks,  
HH

---

<div class="post-metadata">

**Author:** ![HHHHHH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Post date:** [September 29, 2006, 2:42am UTC](https://www.ruby-forum.com/t/date-select-doesnt-support-multiple-records-no/70413/2 "2006-09-29T02:42:21Z")

</div>

HH,

I wasn’t able to find it from the ticket you pasted, nor the ticket  
referred  
to  
by that ticket, but did you see what version of rails this was fixed in?  
From what  
I can clean from the comment stream interspersed with spam comments this  
has yet to be merged into trunk.

I ran into this problem back in January, fixed it, and posted this easy  
fix:

[http://javathehutt.blogspot.com/2006/01/rails-realities-part-3-first-rails.html](http://javathehutt.blogspot.com/2006/01/rails-realities-part-3-first-rails.html)

-Michael

---

<div class="post-metadata">

**Author:** ![HHHHHH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Post date:** [September 29, 2006, 12:58am UTC](https://www.ruby-forum.com/t/date-select-doesnt-support-multiple-records-no/70413/3 "2006-09-29T00:58:13Z")

</div>

I’ll respond to my own post.

This is indeed a bug (or whatever).

Anyway, it’s fixed:

[http://dev.rubyonrails.org/ticket/2655](http://dev.rubyonrails.org/ticket/2655)

---

<div class="post-metadata">

**Author:** ![HHHHHH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Post date:** [September 29, 2006, 3:10am UTC](https://www.ruby-forum.com/t/date-select-doesnt-support-multiple-records-no/70413/4 "2006-09-29T03:10:22Z")

</div>

YouÂ¹re right, it hasnÂ¹t been applied yet. I was incorrect Â­ jumped the  
gun a  
bit.

From: Michael K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Reply-To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Thu, 28 Sep 2006 17:35:47 -0700  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: [Rails] Re: date\_select Doesn’t Support Multiple Records? No  
[]?

HH,

I wasn’t able to find it from the ticket you pasted, nor the ticket  
referred  
to  
by that ticket, but did you see what version of rails this was fixed in?  
Fromwhat  
I can clean from the comment stream interspersed with spam comments this  
has yet to be merged into trunk.

I ran into this problem back in January, fixed it, and posted this easy  
fix:

[http://javathehutt.blogspot.com/2006/01/rails-realities-part-3-first-rails.h](http://javathehutt.blogspot.com/2006/01/rails-realities-part-3-first-rails.h)  
tml  
\<[http://javathehutt.blogspot.com/2006/01/rails-realities-part-3-first-rails](http://javathehutt.blogspot.com/2006/01/rails-realities-part-3-first-rails).  
html\>

-Michael
