Module: SbdevCoreHelper
- Defined in:
- app/helpers/sbdev_core_helper.rb
Overview
These helper methods can be called in your template to set variables to be used in the layout This module should be included in all views globally, to do so you may need to add this line to your ApplicationController
helper :layout
Instance Method Summary collapse
Instance Method Details
#render_seo(index) ⇒ Object
6 7 8 9 10 |
# File 'app/helpers/sbdev_core_helper.rb', line 6 def render_seo(index) content_for(:title, index.try("page_title")) content_for(:keywords, index.try("keywords")) content_for(:page_description, index.try("page_description")) end |