I want to let the user input data via a slider. I've found rangeslider.js
How can I include this to my railsproject?
I want to let the user input data via a slider. I've found rangeslider.js
How can I include this to my railsproject?
I recommend you use bower. You will find a good explanation here.
Then just install the package with the command bower install --save rangeslider.js
.
At last, include rangeslider.min.js to your application.js.
A simpler, but hard-to-maintain solution
//= require "rangeslider.min.js"
to application.js.You can also use a cdn: https://cdnjs.com/libraries/rangeslider.js
Good luck!