doabit / semantic-ui-sass

Semantic UI, converted to Sass and ready to drop into Rails & Compass.
MIT License
1.15k stars 190 forks source link

Javascript assets not loading on heroku #137

Closed nicovigil1 closed 3 years ago

nicovigil1 commented 5 years ago

I've added eveything to my application.js. I had to hard code the required js for ratings in the html for it to work on localhost, however when I deploy to heroku I cannot get the ratings to show up at all. any clue on how to load the js into the asset pipeline?

doabit commented 5 years ago

The latest version?

nicovigil1 commented 5 years ago

Got it working! Turns out it was loading before the html did - I ended up having to wrap it in a document ready block(?) like so

$(document).ready(function(){
  $('.ui.rating')
    .rating("disable")
    ;
}
)

rails version 5.2.2