I have a feeling someone is going to point me to another question that answers this but I\'ve been searching with no luck over this simple issue.
I have a Activereco
One thing you can do to make it more readable is:
((Time.zone.now - myActiveRecord.visit_date) / 1.day).to_i
Edit:
Actually you can get rid of one set of the brackets with:
(Time.zone.now - myActiveRecord.visit_date).to_i / 1.day