/easymeta

An easy to use meta tags helper for rails

Primary LanguageRubyMIT LicenseMIT

Easy Meta helps rails developer to organize the default metadata of a website.

Setup

Add the gem to your Gemfile:

# Gemfile
gem "easymeta"

Then create the metadata file in your Ruby on Rails app config/meta.yml:

# example content
description: "My website description"
og:description: "My website OpenGraph description"
viewport: "width=device-width,initial-scale=1"

An ActionView helper will now be available to render all metadata tags from the template:

<%-# app/views/layouts/application.html.erb -%>
<%= meta_tags %>