public
Fork of robbyrussell/year_after_year
Description: A (extremely) simple helper for Ruby on Ruby on Rails to output the current year... seriously folks... this is serious stuff. ;-)
Homepage: http://www.robbyonrails.com/articles/2008/03/24/dry-a-year-after-year
Clone URL: git://github.com/timriley/year_after_year.git
name age message
file MIT-LICENSE Mon Mar 24 23:28:44 -0700 2008 Whitespace cleanup so it commits cleanly in app... [grempe]
file README Mon Mar 24 23:28:44 -0700 2008 Whitespace cleanup so it commits cleanly in app... [grempe]
file init.rb Fri Mar 28 03:56:56 -0700 2008 Reinsert spurious whitespace to init.rb to sati... [Tim Riley]
directory lib/ Fri Mar 28 03:42:35 -0700 2008 We love fixnum. current_year will get converted... [Tim Riley]
directory spec/ Fri Mar 28 03:48:39 -0700 2008 Ensure current year displays properly in a stri... [Tim Riley]
README
YearAfterYear
==============

This plugin allows you to keep your copyright year up-to-date.

Example
=======

You can render the current year in your ERb views like so:

  <%= current_year -%>

If you want to provide a year range, you can use year_range and provide the
year that you started.

  Example: With the assumption that the current year was 2008

  <%= year_range(2005) -%>     # => 2005-2008
  <%= year_range(2008) -%>     # => 2008 (just returns current year)

You can access the code here:

* http://github.com/robbyrussell/year_after_year/

Feature Requests / Bugs

* http://planetargon.lighthouseapp.com/projects/5187-open-source-projects

Copyright (c) 2008 Robby Russell, released under the MIT license