Method: Tolaria::FormBuildable#hint

Defined in:
lib/tolaria/form_buildable.rb

#hint(hint_text, options = {}) ⇒ Object

Returns a p.hint used to explain a nearby form field containing the given hint_text.



6
7
8
9
# File 'lib/tolaria/form_buildable.rb', line 6

def hint(hint_text, options = {})
  css_class = "hint #{options.delete(:class)}"
  (:p, (:span, hint_text.chomp), class:css_class, **options)
end