Forum: Ruby on Rails select_year and date_select tag??

98035f2826f1c962799e023da10d5f77?d=identicon&s=25 kanna (Guest)
on 2013-08-03 10:51
(Received via mailing list)

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

<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 class="datefield" name="advisers[end_month]"
                    <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>

anybody please help.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.