class Forme::Helper
Default helper used by the library, using a span with “helper” class
Registered as :default.
Public Instance Methods
call(tag, input)
click to toggle source
Return tag with help message span tag after it.
# File lib/forme/transformers/helper.rb 11 def call(tag, input) 12 attr = input.opts[:helper_attr] 13 attr = attr ? attr.dup : {} 14 Forme.attr_classes(attr, 'helper') 15 [tag, input.tag(:span, attr, input.opts[:help])] 16 end