No commit activity in last 3 years
No release in over 3 years
Render internationalized Creative Commons license notices in your views
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 0
>= 0
 Project Readme

Creative Commons Rails

The Creative Commons Rails gem allows you to quickly and easily render internationalized Creative Commons license notices in your views.

Installation

Add this line to your application's Gemfile:

gem 'creative_commons_rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install creative_commons_rails

Usage

Basic usage (in your view):

<%= cc_license_tags(:by) %>

With options (see below for details):

<%= cc_license_tags(:by, version: 2.5, jurisdiction: :ca, size: :compact %>

To display the license notice in a different language, simple ensure your I18n.locale setting is appropriately configured.

Options

  • License type parameter: symbol {:by,:by_sa,:by_nd,:by_nc,:by_nc_sa, or :by_nc_nd}. See creativecommons.org for information on licensing options.
  • version: FixNum or String [default: 3.0].
  • jurisdiction: symbol [default: :unported]. See lib/creative_commons_rails/license_list.yaml for all available jurisdictions.
  • size: symbol {:normal or :compact} [default: :normal]. Controls the image size.

License

(c) 2013, Kent Mewhort, licensed under BSD. See LICENSE.txt for details.