Class: DatepickerInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- DatepickerInput
- Defined in:
- app/inputs/datepicker_input.rb
Instance Method Summary collapse
Instance Method Details
#datepicker_options(value = nil) ⇒ Object
6 7 8 |
# File 'app/inputs/datepicker_input.rb', line 6 def (value = nil) = {:class => 'input-small datepicker string', :value => value.nil?? nil : value.strftime("%d/%m/%Y")} end |
#input ⇒ Object
2 3 4 |
# File 'app/inputs/datepicker_input.rb', line 2 def input "#{@builder.text_field(attribute_name, .merge((object.send(attribute_name))))}".html_safe end |