Skip to content

Quick and configurable canonical tag to use in Rails views.

License

Notifications You must be signed in to change notification settings

Treize37/canonical-rails

This branch is 1 commit ahead of, 161 commits behind jumph4x/canonical-rails:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a47cb8d · Aug 13, 2015

History

52 Commits
Aug 13, 2015
Apr 2, 2012
Aug 13, 2015
Apr 2, 2012
Aug 13, 2015
Aug 13, 2015
Apr 2, 2012
Apr 2, 2012
Aug 13, 2015
Apr 2, 2012
May 7, 2015
Apr 2, 2012
Aug 13, 2015

Repository files navigation

CanonicalRails

Dependency Status

This project rocks and uses MIT-LICENSE, foh sho. Works with rails 3 and 4.

A number of articles exist explaining the issue concisely and at length:

Challenge

I've seen a lot of folks do more harm by neglecting canonicalization altogether than by applying to narrowly and conservatively, so here is an attempt to let people start modestly without spending too much time on it and whitelist parameters as they need to.

Install

gem 'canonical-rails', github: 'jumph4x/canonical-rails'

Usage

First, generate the config

rails g canonical_rails:install

Then find it in config/initializers/ as canonical_rails.rb

Finally, include the canonical_tag helper inside the head portion of your HTML views:

  <%= canonical_tag -%>

Cred

A project by Downshift Labs, Ruby on Rails, Performance tuning and Spree Commerce projects.

About

Quick and configurable canonical tag to use in Rails views.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 89.7%
  • HTML 6.8%
  • JavaScript 1.9%
  • CSS 1.6%