Sha256: 431d7e2bdbcd08c446884e9778953898f3615149b3377d421d1c0e3102f086e3

Contents?: true

Size: 464 Bytes

Versions: 35

Compression:

Stored size: 464 Bytes

Contents

# 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
module SbdevCoreHelper
  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
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
sbdevcore-0.2.17 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.16 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.15 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.14 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.13 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.12 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.11 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.10 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.9 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.8 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.7 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.6 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.5 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.4 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.2 app/helpers/sbdev_core_helper.rb