Files

SimpleForm::Components::Hints

Public Instance Methods

hint() click to toggle source
# File lib/simple_form/components/hints.rb, line 4
def hint
  template.content_tag(hint_tag, hint_text, hint_html_options) unless hint_text.blank?
end
hint_html_options() click to toggle source
# File lib/simple_form/components/hints.rb, line 16
def hint_html_options
  html_options_for(:hint, [:hint])
end
hint_tag() click to toggle source
# File lib/simple_form/components/hints.rb, line 8
def hint_tag
  options[:hint_tag] || SimpleForm.hint_tag
end
hint_text() click to toggle source
# File lib/simple_form/components/hints.rb, line 12
def hint_text
  @hint_text ||= options[:hint] || translate(:hints)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.