module FormtasticRebootstrap::Inputs::Base::Hints

Public Instance Methods

hint_html(inline_or_block = :block) click to toggle source
# File lib/formtastic_rebootstrap/inputs/base/hints.rb, line 8
def hint_html(inline_or_block = :block)
  if hint?
    hint_class = if inline_or_block == :inline
      options[:hint_class] || builder.default_inline_hint_class
    else
      options[:hint_class] || builder.default_block_hint_class
    end
    template.content_tag(
      :span,
      Formtastic::Util.html_safe(hint_text),
      :class => hint_class
    )
  end
end