Forum: Ruby on Rails A drop down menu of months

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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
                                      ['Feburary 2006', DATETIME for
                                      ['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
This topic is locked and can not be replied to.