module Formtastic::Inputs::Base::Hints

Public Instance Methods

hint?() click to toggle source
# File lib/formtastic/inputs/base/hints.rb, line 16
def hint?
  !hint_text.blank? && !hint_text.kind_of?(Hash)
end
hint_html() click to toggle source
# File lib/formtastic/inputs/base/hints.rb, line 6
def hint_html
  if hint?
    template.content_tag(
      :p, 
      Formtastic::Util.html_safe(hint_text), 
      :class => builder.default_hint_class
    )
  end
end
hint_text() click to toggle source
# File lib/formtastic/inputs/base/hints.rb, line 20
def hint_text
  localized_string(method, options[:hint], :hint)
end
hint_text_from_options() click to toggle source
# File lib/formtastic/inputs/base/hints.rb, line 24
def hint_text_from_options
  options[:hint]
end