Sometimes I have problems due to the asset pipeline and my misunderstanding. So, what am I doing to make sure everything is packed correctly, just added a simple warning when loading the page (put it on some random users that users cannot reach, etc.)
alert('some-unique-string')
Send the code to the server. Then in chrome print the page and use the dev tools, go to the "scripts" tab. From there, you can find the string some-unique-string
, since your string literal will not be reduced. If you do not see this, you know that your javascript is not included for some reason.
This will at least give you a starting point.
source share