From 5d5d170b368d9079997adec09335d015966aaa9c Mon Sep 17 00:00:00 2001 From: Banura Randika Date: Wed, 20 May 2020 11:36:59 +0530 Subject: [PATCH] Readme issue fix --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cfb8084..59e8782 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ If the model has attributes for that you need to use for the seoable attributes acts_as_seoable :title_seoable, :description, :keywords def title_seoable -"#{self.name}#{self.id}" + "#{self.name}#{self.id}" end ``` when you create a new record from this model the gem will create a corresponding seoable record as well. Above values will be set as default values. @@ -171,6 +171,16 @@ def twitter_tags end ``` +For adding dynamic tags to frontend please add meta tags as follows: + +```ruby +# some_controller.rb + +def show + @user = User.find(params[:id]) + set_meta_tags @user +end +``` ### Sitemap For sitemap you need to configure as follows: