I\'d like to have Rails produce source maps alongside the compiled coffeescript/minified JS, for better error logging. There doesn\'t seem to be comprehensive documentation on t
This looks like it should work: http://alexspeller.com/2012/09/15/Source_maps_for_coffeescript_in_rails.html
Though, keep in mind the warning at the end:
Important Note: this rather brutal hack replaces the normal coffeescript compiler by shelling out to the CoffeeScriptRedux compiler, which is not in fact finished. This is just a proof of concept, you probably shouldn’t use it.
So I wouldn't recommend running this in production, but if you have a staging environment (also on Heroku, also with minified Javascript) it might be useful.