Forum: Ruby on Rails A drop down menu of months

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.
Ken K. (Guest)
on 2006-06-05 22:54
Say I have some stuff in my database

Item 1    DATETIME (Sometime in Janurary)
Item 2    DATETIME (Sometime in Feburary)

And now the month is March.

I would like to be able to do this in the view effectively:
<%= select( 'donated', 'donated_on', [['Janurary 2006', DATETIME for
JAN2006],
                                      ['Feburary 2006', DATETIME for
FEB2006],
                                      ['March 2006', DATETIME for
MAR2006]]) %>

so that, when the user selects the entry and submits for it, I will be
able to process that data and query the information from my db
accordingly.
This topic is locked and can not be replied to.