MetaTags: Rails helpers for SEO metadata, sharing, canonical URLs, and robots

MetaTags helps Ruby on Rails applications render HTML head metadata such as titles, descriptions, canonical links, robots directives, Open Graph tags, X card tags, and hreflang links.
It supports the metadata layer of search engine optimization (SEO), especially for titles, descriptions, canonicalization, robots directives, and social sharing previews.
Ruby on Rails
The MetaTags main branch fully supports Ruby on Rails 6.1+ and is tested against all major Ruby on Rails releases.
[!NOTE]
We no longer support Ruby versions older than 3.0 and Ruby on Rails older than 6.1 since they reached their end of life (see Ruby and Ruby on Rails).
[!IMPORTANT]
MetaTags manages HTML head metadata. It does not generate structured data / JSON-LD, robots.txt, sitemaps, internal links, or page content.
Installation
Add the "meta-tags" gem to your Gemfile.
gem "meta-tags"