Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (18 sloc) 0.812 kb
This plugin allows you to keep your copyright year up-to-date.
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
<%= current_year_range(2005) -%> # => 2005-2008
<%= current_year_range(2005, '&mdash;') -%> # => 2005&mdash;2008
<%= current_year_range(2008) -%> # => 2008 (just returns current year)
You can access the code here:
Feature Requests / Bugs
Copyright (c) 2008 Robby Russell, released under the MIT license
Jump to Line
Something went wrong with that request. Please try again.