Ich bin mit Rails 3.2.14 ohne Frage ...JSON Fehler mit Coffee & Rails Asset-Pipeline
Ich habe vor kurzem application.js
-application.js.coffee
umbenannt und sind jetzt einen JSON-Fehler.
JSON::GeneratorError
only generation of JSON objects or arrays allowed
(in /.../app/assets/javascripts/application.js.coffee)
Selbst wenn ich alle Inhalte von application.js.coffee
lösche ich immer noch den Fehler.
Wenn ich versuche, es direkt zu sehen (http://localhost:3000/assets/application.js
), ist es das gleiche Problem:
throw Error("JSON::GeneratorError: only generation of JSON objects or arrays allowed\n (in /.../app/assets/javascripts/application.js.coffee)")
Ich habe meine App für alle möglichen Probleme gekämmt, aber alles sieht ziemlich Standard.
Hat application.js.coffee auch Referenzen auf andere JS? – techvineet