I'm using raty (http://wbotelhos.com/raty) on my rails 4 app and it works fine localy. When I deploy to heroku I get this error message: "Uncaught TypeError: Object [object Object] has no method 'raty' ". All other javascript works fine as well. I did precompile assets but it didn't help.
Asked
Active
Viewed 300 times
1
-
You're going to get that error if raty is not yet loaded on the page before you call `someRatyObject.someRatyMethod()`. – Clev3r Jan 27 '14 at 18:43
-
It doesn't seem to load at all and I don't understand why if it loads locally. – misschoksondik Jan 27 '14 at 19:15
-
Are you using rails to handle dependency management? Or are you including a script include tag? – Clev3r Jan 27 '14 at 19:26