In the mailbox section of my Rails app, I simply display the timestamps of each message as follows:
<%= message.created_at.utc %>
But I want to change it so that if the message's date is different to today, then display the date, otherwise just display the time (e.g. like Gmail).