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, = {}) css_class = "hint #{.delete(:class)}" content_tag(:p, content_tag(:span, hint_text.chomp), class:css_class, **) end |