Saturday, August 8, 2009

Calculate And Format Due Date In Words

In my todo application, I want to show the due date in years, months, weeks and days... I saw many sites have this feature but I couldn't find any available source code by googling. So I decide to implment my own. It is premature and only server simple purposes. If you find it helpful and save you some time, feel free to copy and use it. It's a helper method added into your application helper or any helper in your rails application.