Я хотел бы использовать некоторые erb в моих файлах .coffee
, как в следующем примере
myLatlng: new google.maps.LatLng(<%=@location.latitude %>, <%=@location.longitude %>)
Я переименовал свои местоположения. js.coffee
в location.erb.coffee
, но я все еще получаю следующую ошибку
Error compiling asset application.js:
ExecJS::ProgramError: Error: Parse error on line 4: Unexpected 'COMPARE'
(in /Users/denisjacquemin/Documents/code/projects/geolog/app/assets/javascripts/locations.erb.coffee)
Served asset /application.js - 500 Internal Server Error