I would like to use some erb in my .coffee files, like the following example
.coffee
myLatlng: new google.maps.LatLng(<%=@location.latitude %>, &l
If you want erb in the .coffee files IN YOUR VIEW folder, leave your file named as yourfilename.js.coffee, and Rails will still process the ERB, oddly enough.
yourfilename.js.coffee
To make it work in Heroku, move coffee-rails out of the assets group in your Gemfile.