I'd like to write a simple function to say in hours:
How much time has passed since this has been created?
-time = DateTime.now.hour - (self.created_at.hour)
Rails usually uses
DateTime. Why don't you do
Time.now - self.created_at? Then you can convert from seconds to hours by dividing by 3600.