Let\'s say I create two time objects from my user model:
created = u.created_at updated = u.updated_at
How do I calculate the difference in
This should work:
hours = ((created - updated) / 1.hour).round
Related question: Rails Time difference in hours