I'm trying to make an app in Rails 4 using bootstrap-slider-rails gem.
I can't find an example of how to use it.
I have set it up by installing the gem and adding:
@import 'bootstrap-slider';
to my application.css.scss file, and
//= require_tree .
//= require bootstrap-slider
bootstrap slider is the last thing required in my application.js
In my view, I want to make a slider.
I've tried crudely pasting the text shown on http://www.eyecon.ro/bootstrap-slider/
$('.slider').slider()
although it does nothing except print the slider line as text.
How do you get this working?
By contrast, when I use examples from
http://seiyria.com/bootstrap-slider/
I can display a slider on the view. I don't think this uses the gem though.
Does anyone know how to get this working?