finds.dev

kpumuk/meta-tags

Search Engine Optimization (SEO) for Ruby on Rails applications.

View on GitHub

★ 2,802RubyMITupdated Oct 2026

// the take

MetaTags is a Rails gem that renders HTML head metadata — titles, descriptions, canonical links, robots directives, Open Graph, Twitter cards, and hreflang alternates — through view/controller helpers instead of hand-written ERB in the layout. It's for any Rails app that needs consistent, DRY control over SEO and social-sharing tags across many views.

The set_meta_tags (view) / display_meta_tags (layout) split keeps metadata assembly decoupled from rendering, and mirrored values (og: { title: :title }) let you reference a top-level tag instead of repeating the same string in three namespaces. Arbitrary nested namespaces work out of the box — any symbol key plus a hash becomes dotted meta tags — so new OG/Twitter fields platforms introduce don't require a gem update to support. Turbo works with zero configuration beyond setting an id on the title tag, which matters since most new Rails apps are Turbo-first now. The project is actively maintained: tested against Rails 6.1 through edge, ships RBS type signatures, and runs bundler-audit/Dependabot/OpenSSF Scorecard in CI.

It's a pure view-layer concern — it emits tags but does nothing for the substance of SEO (JSON-LD structured data, robots.txt, sitemaps), so teams typically end up pulling in a second gem anyway and this README is upfront about that gap. Ruby 3.2+ and Rails 6.1+ are hard requirements, which forces an upgrade path for apps still on older LTS Rails. A 3.0 breaking change is already signaled in the docs — resolve_symbolic_references_in_arrays will change how symbols inside nested custom tag arrays resolve, and code written against the current (2.x) symbol behavior will need migration. There's no caching of generated tags, so pages with large og:image arrays or many hreflang/alternate links rebuild that work on every request.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
2,802
Forks
279
Language
Ruby
License
MIT
Last commit
29 Oct 2026

// nearby

If meta-tags isn't quite it.

All repos →