I'm using simple_form and a bootstrap_slider in a nested form. How do I pass the setup parameters in?
I'm using this
<%= f.input_field :proficiency, class: 'agt_prof_slider' %>
which works fine. The class is used by jquery to update another field. the thing I haven't been able to do is set the initial value. Bootstrap_slider wants this:
<input id="ex6" type="text" data-slider-min="-5" data-slider-max="20" data-slider-step="1" data-slider-value="3">
How do I include the "data-slider-value" in f.input_field? This is part of a nested section, so I need the automatically generated IDs, etc. I just need to get the original value into the slider so that the form works for an edit screen.
The class 'agt_prof_slider' is what I use in my jquery, e.g.,
$('.agt_prof_slider').slider()