module MetaRailsHelpers::RobotsHelper

Public Instance Methods

robots(identifier: :robots) click to toggle source

Produces html meta element for robots

# File lib/meta/rails/helpers/robots_helper.rb, line 4
def robots(identifier: :robots)
  robots = content_for(identifier)
  return if robots.blank?

  tag(:meta, name: 'robots', content: robots)
end