# Date of birth pulldowns?

**URL:** <https://www.ruby-forum.com/t/date-of-birth-pulldowns/106356>\
**Category:** Rails\
**Created:** [June 8, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/date-of-birth-pulldowns/106356 "2007-06-08T22:32:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liberte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9e8a1a/32.png) [@liberte](https://www.ruby-forum.com/u/liberte)\
**Post date:** [June 8, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/date-of-birth-pulldowns/106356/1 "2007-06-08T22:32:42Z")

</div>

I’m trying to store the birth date of individuals. Is there an easy way  
to allow the user to input their date of birth using pulldowns? I could  
create them myself, but I was wondering if RoR had a method of doing  
this imbedded in it. I’ve seen the “Cookbook” example application on  
OnLamp, but the scaffolding generates those pulldowns. I pretty much  
want to do the same thing. If anyone could point me to a site with the  
information, I’d greatly appreciate it. I’ve been searching for a while  
and couldn’t find anything.  
Thanks for any help.

---

<div class="post-metadata">

**Author:** ![liberte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9e8a1a/32.png) [@liberte](https://www.ruby-forum.com/u/liberte)\
**Post date:** [June 8, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/date-of-birth-pulldowns/106356/2 "2007-06-08T22:41:22Z")

</div>

Daniel L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m trying to store the birth date of individuals. Is there an easy way  
> to allow the user to input their date of birth using pulldowns?

I think you’re looking for date\_select:

[ActionView::Helpers::DateHelper](http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M000577)

Cheers,  
Tyler

---

<div class="post-metadata">

**Author:** ![liberte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9e8a1a/32.png) [@liberte](https://www.ruby-forum.com/u/liberte)\
**Post date:** [June 8, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/date-of-birth-pulldowns/106356/3 "2007-06-08T23:12:45Z")

</div>

Hey Tyler,

Thanks a lot! That’s exactly what I was looking for. I knew it had to  
be some helper tag like that, but I just couldn’t figure out the exact  
wording. Thank you so much.
