Module: FormSlider::SliderFieldTag
- Includes:
- Helper
- Included in:
- ApplicationHelperAdditions
- Defined in:
- lib/form_slider/slider_field_tag.rb
Instance Method Summary collapse
Methods included from Helper
#slider_label, #slider_options
Instance Method Details
#slider_field_tag(name, value = nil, *args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/form_slider/slider_field_tag.rb', line 7 def (name, value=nil, *args) args = args.any? ? args.first : {} value = args[:min] if value.blank? output = "" content_tag :div, class: 'slider-container' do output << concat( (name, args) ) output << concat( content_tag :div, '', (name, args) ) output << concat( text_field_tag(name, value) ) end end |