I'm trying to use this plugin in my Rails app: https://github.com/pguso/jquery-plugin-circliful
I set it up exactly as instructed, with the following in application.html.erb:
<link href="css/jquery.circliful.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="js/jquery.circliful.min.js"></script>
And the following in my view:
<div class="row">
<div class="col-md-12">
<div id="your-circle"></div>
</div>
</div>
<script>
$( document ).ready(function() {
$("#your-circle").circliful({
animationStep: 5,
foregroundBorderWidth: 5,
backgroundBorderWidth: 15,
percent: 75
});
});
</script>
In the javascript console I see the following 404 errors:
GET http://localhost:3000/contestants/js/jquery.circliful.min.js
GET http://localhost:3000/contestants/css/jquery.circliful.css
GET http://localhost:3000/contestants/js/jquery.circliful.min.js 404 (Not Found)
Uncaught TypeError: $(...).circliful is not a function
at HTMLDocument.<anonymous> (12:168)
at i (jquery-1.12.4.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.12.4.min.js:2)
at Function.ready (jquery-1.12.4.min.js:2)
at HTMLDocument.K
I'm not sure what could be wrong since I am copying and pasting from the documentation. Any help is appreciated.