For the months:
<%= select_month(Date.today) %>
(the Date.today
argument will default it to the current month - use select_month(1)
to default to January)
For the years:
<%= select_year(Date.today, :start_year => Date.today.year, :end_year => 8.years.from_now.years) %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With