[Rails] SEO 設定方式
本文使用 Ruby 2.3.1 / Rails 4.2.0
前言
本文將介紹如何在Rails中動態的配置head中的Title、Description及keywords。
設定方式
###1) 安裝 gem seo_helper
gem ‘seo_helper’, ‘~> 1.0’
###2) 在 config/initializers 加入 seo_helper.rb
SeoHelper.configure do |config|
config.site_name = "XXX網站"
end
###3)
留言