Class: PriceInput
- Inherits:
-
Formtastic::Inputs::NumberInput
- Object
- Formtastic::Inputs::NumberInput
- PriceInput
- Defined in:
- app/models/inputs/price_input.rb,
app/models/inputs/price_input.rb
Instance Method Summary collapse
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
6 7 8 9 |
# File 'app/models/inputs/price_input.rb', line 6 def input( = nil) = (, ) Inputs::PriceField.new(object, object_name, template, attribute_name, ).to_html end |
#to_html ⇒ Object
13 14 15 16 17 |
# File 'app/models/inputs/price_input.rb', line 13 def to_html input_wrapping do label_html << Inputs::PriceField.new(@object, @object_name, @template, @method, @options).to_html end end |