Take a look at the "Tidying up the Code" section here for a small improvement: http://railscasts.com/episodes/31-formatting-time?view=asciicast