title: rails How to calculate time difference with integer between 3 dates
body: <p>How to compare 3 dates, (Time.now - @model.updated_at) &lt; :integer(converted to days) , So first is a substraction between two dates and the difference between the two dates as (amount of time) is compared(&lt; less than) to an :integer.days(amount of time). Hope this makes sense... im going through different options but im just getting more confused. Thanks for any help. </p>
  
  <pre><code>"#{Time.now}".to_i.days - "#{:updated_at}".to_i.days &lt; "#{:integer}".to_i.days
  </code></pre>