canonical_dude is a Rails plugin to easily set your preferred version of a URL via the canonical tag
Rudolf Schmidt
gem "canonical_dude", "~> 2.0.0"