Relative Time Helpers plugin

Plugin details

Adds additional time helpers

Repositoryhttp://ar-code.svn.engineyard.com/plugins/relative_time_helpers/ Tags Time, helpers LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://ar-code.svn.engineyard.com/plugins/relative_time_helpers/

Displays 'today'

<%= relative_time(1.day.ago) %>



Displays 'yesterday'

<%= relative_time(1.day.from_now) %>



Displays 'October 1st - 6th'

<%= relative_time_span([Time.now, 5.days.from_now]) %>

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (2 older versions) | Last edited by: scott, 5 months ago