title: Editing Date field - RoR
body: <p>all,</p>
  
  <p>Am new to RoR and hence needed some guidance w.r.t Date field.<br>
  Background:</p>
  
  <p>1 > I create a model object using <code>rails generate scaffold &lt;Model&gt; name:string remainderDate: date</code></p>
  
  <p>2 > Now when I have deployed the model to DB using <code>rake db:migrate</code> and on opening the URL: <code>localhost:3000/&lt;Model&gt;s/new</code>, the displayed date field is in the format YYYY MM DD, all 3 separate fields with dropdown with  </p>
  
  <p>YYYY values >=2006 and &lt;=2016<br>
  MM values >= January and &lt;= December (obvious)<br>
  DD values >= 1 and &lt;=31  </p>
  
  <p><strong>Question 1</strong>:<br>
  1> Where is the code for setting the values to these fields?<br>
  2> Can I change the format to MM DD YYYY?<br>
  3> Can I restrict the values being added to the list? i.e. for the current year 2011, only months starting from April should be shown and only dates starting current day should be shown<br>
  4> Where can I change the display text for the <code>new</code> form? I opened up <code>new.html.erb</code> and could not understand where the display text is set. I also opened up <code>_form.html.erb</code> and could not locate where necessary changes can be done?</p>