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.3.10 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.9 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.8 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.7 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.6 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.5 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.4 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.3 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.2 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.1 app/helpers/sbdev_core_helper.rb
sbdevcore-0.3.0 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.26 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.25 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.24 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.23 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.22 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.21 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.20 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.19 app/helpers/sbdev_core_helper.rb
sbdevcore-0.2.18 app/helpers/sbdev_core_helper.rb