title: haml and ruby on rails date of birth date field syntax
body: <p>SO I have been learning ror and trying out some form examples.
  Most of the examples in the web is in erb format and my files are in .haml format. I am trying to a write a static dob field where it takes day,time,year.</p>
  
  <pre><code>view
  %label{:for =&gt; "patient_dob"} DOB
    %date_select {Date.today,start_year =&gt; getBirthDateStart(), :end_year =&gt; getBirthDateEnd() }
  
  module ApplicationHelper
  def getBirthDateStart()
    Time.now.year - 100
  end
  
  def getBirthDateEnd()
    Time.now.year
  end
  end
  </code></pre>
  
  <p>I know my code doesn't make much sense, but hope it explains what I am trying to do. Can someone point me to the correct direction.</p>