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