I\'m trying to precompile my assets for production, but rails doesn\'t seem to be cooperating.
$ bundle exec rake assets:precompile
/home/drderp/.rvm/rubies/
For some reason, on Heroku and also when I ran the above-mentioned code to "uglify" the javascript in the rails console, it would not report the line number of the error!. It is just a ruby wrapper for UglifyJS, which you can use online here https://skalman.github.io/UglifyJS-online/.
So I just copied and pasted the offending js file in here, and it reported the line number. Very easy.