title: date_select ruby issue while populating db value in 'view'
body: <p>I am having issues in populating <code>date</code> value from my DB to the Rails <code>View</code> object. What I have in the DB is a table <code>License</code> with an attribute <code>license_expiration="2012-11-11"</code>. I need to populate this value in the <code>View</code> when the user selects 'edit'. What I have in the <strong>edit.html.erb</strong> file is:</p>
  
  <pre><code>&lt;h1&gt;Edit License&lt;/h1&gt;
  &lt;% product_options_for_selector = options_for_select(product_selection_options, 
  @license.product ? @license.product.id : product_selection_options.first.last) 
  %&gt;
  
  &lt;% form_tag("/licenses/#{@license.id}", :method =&gt; :put, :id =&gt; "edit_license_#        @license.id}") do %&gt;
  .
  .
  .
  .
  &lt;%= label_tag :license_expiration, 'License Expiration:' %&gt; &lt;br /&gt;
  &lt;%= date_select :license_expiration, @license.license_expiration %&gt;
  . 
  .
  .
  </code></pre>
  
  <p>However, the date_select always default to current date instead of the <code>@license.license_expiration</code> value from the DB. Any thoughts as to what I am doing wrong here? Help would be appreciated,</p>
  
  <p>Thanks,</p>
  
  <p>--- J.A.N.</p>