Bruno Miranda's Notebook

Personal Blog about Ruby on Rails, XHTML, CSS, and Design

There comes a time in one’s life where one realizes he should have been serving RSS via feedburner.

I have been trying to be a more prolific blogger here but have no idea if anyone even reads this thing. Actually I forcefully make sure 2 or 3 of my friends read it but that usually involves bribing, screaming and crying. All jokes aside I would like to know if anyone else out there subscribes to the blog. I have lots of interesting topics lined up to post about and knowing there is ‘life’ out there would help motivate me.

If you subscribe to this blog please post a quick +1 comment!

Thank you!

Very useful plugin that formats timestamps to human-friendly relative dates.

<%= relative_time(Time.now) %>
# today
<%= relative_time(1.day.ago) %>
# yesterday
<%= relative_time(1.day.from_now) %>
# tomorrow
<%= relative_time_span([Time.now, 5.days.from_now]) %>
# May 17th - 22nd

To install:

script/plugin install http://ar-code.svn.engineyard.com/plugins/relativetimehelpers

Comments: 0 (view/add your own) Tags: date, ruby, time