Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

creative_commons_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

creative_commons_rails

  • 0.9.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 31 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc