README.md in jt-rails-meta-1.0.9 vs README.md in jt-rails-meta-1.0.10

- old
+ new

@@ -8,11 +8,11 @@ JTRailsMeta is distributed as a gem, which is how it should be used in your app. Include the gem in your Gemfile: - gem 'jt-rails-meta', '~> 1.0' + gem 'jt-rails-meta', '~> 1.0' Create a `meta.yml` file for the translations: rails g jt:meta @@ -32,12 +32,12 @@ Call `meta_tags` in your layout: ```html <!DOCTYPE html> <head> - <meta charset="UTF-8" /> - <%= meta_tags %> + <meta charset="UTF-8" /> + <%= meta_tags %> </head> <body> </body> ``` @@ -81,16 +81,16 @@ In your controller: ```ruby class PostsController < ApplicationController - def show - @post = Post.find(params[:id]) + def show + @post = Post.find(params[:id]) - set_meta_title({ title: @post.title }) - set_meta_description({ title: @post.title, author: @post.author }) + set_meta_title({ title: @post.title }) + set_meta_description({ title: @post.title, author: @post.author }) add_meta_keywords(@post.tags.map(&:name)) - end + end end ``` In your `meta.yml` file: