title: TypeError: expected numeric
body: <p>I have one model with the name <code>job</code>.</p>
  
  <p>I want to calculate the number of days since the <code>job</code> has been created.</p>
  
  <p>I think we have to calculate the difference between <code>Date.today</code> and <code>jobs</code> <code>created_at</code></p>
  
  <p>my method is:</p>
  
  <pre><code>def self.open_jobs(date)
      Date.today - where("status='open' AND date(created_at) = ?",date).round
  end
  </code></pre>
  
  <p>I am getting some error please let me know how to calculate the days the job has been created.</p>
  
  <p>I have to calculate number of days. for example I have created a job on 20th sep 2012.
  it should be Date.today - 20/09/2013
  answer should be 5 days and one more thing i need to check one more column status ="open" and display only those jobs.</p>
  
  <p>if anybody knows how to calculate please post here.</p>