# Date select not working in Rails 2.2.2

**URL:** <https://www.ruby-forum.com/t/date-select-not-working-in-rails-2-2-2/156833>\
**Category:** Rails\
**Created:** [January 3, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/date-select-not-working-in-rails-2-2-2/156833 "2009-01-03T21:02:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elioncho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Post date:** [January 3, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/date-select-not-working-in-rails-2-2-2/156833/1 "2009-01-03T21:02:15Z")

</div>

Hello,

I have a date\_select inside a form\_for which was working in Rails 2.1  
but once I migrated to 2.2.2 I get the following error:

undefined method `each’ for false:FalseClass

\<%= f.date\_select(:birthday, :order =\>  
[:month, :day, :year], :start\_year =\> 1900, :use\_month\_numbers =\>  
false)

Anyone knows where the root of this problem?

Thanks,

Elías

---

<div class="post-metadata">

**Author:** ![elioncho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Post date:** [January 3, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/date-select-not-working-in-rails-2-2-2/156833/2 "2009-01-03T22:20:29Z")

</div>

On Sat, Jan 3, 2009 at 12:01 PM, elioncho [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> false)
> 
> Anyone knows where the root of this problem?

Hi, are you creating/updating a model with this form? If the answer is  
no,  
then you should be using select\_date. Where are you using the each  
method?

-Conrad
