Class: UnderlineInput
- Inherits:
-
Object
- Object
- UnderlineInput
- Includes:
- Formtastic::Inputs::Base
- Defined in:
- app/inputs/underline_input.rb
Instance Method Summary collapse
Instance Method Details
#label_html ⇒ Object
11 12 13 14 |
# File 'app/inputs/underline_input.rb', line 11 def label_html super << "<span>#{[:prefix]}</span>".html_safe end |
#to_html ⇒ Object
4 5 6 7 8 9 |
# File 'app/inputs/underline_input.rb', line 4 def to_html input_wrapping do label_html << builder.send(:text_field, method, ) end end |