Forum: Ruby on Rails Date select not working in Rails 2.2.2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A1247f73598357f06388e863c41aa624?d=identicon&s=25 Elias Orozco (elioncho)
on 2009-01-03 21:02
(Received via mailing list)
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
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2009-01-03 22:20
(Received via mailing list)
On Sat, Jan 3, 2009 at 12:01 PM, elioncho <elioncho@gmail.com> 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
This topic is locked and can not be replied to.