CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Ruby & Ruby On Rails (http://www.codingforums.com/forumdisplay.php?f=44)
-   -   How do I put a blank space in a select box? (http://www.codingforums.com/showthread.php?t=250845)

sbzero546 02-06-2012 07:31 PM

How do I put a blank space in a select box?
 
I am doing it for a death date and I need it for the year month and day.
Code:

<div class="field">
    <%= f.label :death_date %><br />
    <%= f.date_select :death_date,
                          :start_year => 1800,
                          :end_year => (Time.now.year+2) %>
  </div>



All times are GMT +1. The time now is 02:01 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.