Forum: Ruby on Rails select_year and date_select tag??

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.
98035f2826f1c962799e023da10d5f77?d=identicon&s=25 kanna (Guest)
on 2013-08-03 10:51
(Received via mailing list)
Hi

I need to use select_year and date_select_year tag, but i dont know how
to
use?

<select class="datefield" style="margin-bottom:3px;"
name="advisers[start_year]" id="Deal_Date_From_year">
                        <option selected="selected"></option>
                        <option value="2013">2013</option>
                        <option value="2012">2012</option>
                        <option value="2011">2011</option>
                        <option value="2010">2010</option>
                        <option value="2009">2009</option>
                    </select>

<select class="datefield" name="advisers[end_month]"
id="Deal_Date_To_mnth">
                    <option selected="selected" value=""></option>
                    <option value="1">Jan</option>
                    <option value="2">Feb</option>
                    <option value="3">Mar</option>
                    <option value="4">Apr</option>
                    <option value="5">May</option>
                    <option value="6">Jun</option>
                    <option value="7">Jul</option>
                    <option value="8">Aug</option>
                    <option value="9">Sep</option>
                    <option value="10">Oct</option>
                    <option value="11">Nov</option>
                    <option value="12">Dec</option>
                </select>



anybody please help.
This topic is locked and can not be replied to.