javascript - Coffeescript generating blank JS file in Rails 3.2 -
edit: full reboot of machine running rails server has fixed this.
i'm getting strange problem in 1 of coffeescript files compiling empty javascript file. file had been compiling fine , randomly stopped working. can enter in file, code should throw error , still generates empty js file.
i have run rake assets:clean
, have never run rake assets:precompile
in development environment. i've checked public/assets directory , there nothing in it. have tried clearing browser cache , didn't work either.
here in events.js.coffee file
console.log 'test'
and here being output events.js
(function() { }).call(this);
here application.js.coffee file
#= require jquery #= require jquery_ujs #= require sugar #= require foundation #= require fullcalendar #= require jquery.ui.all #= require_self #= require_tree . $(document).foundation
if has ideas appreciated.
i faced issue , caching in browser. emptied , started working. (that's why full restart worked , not restarting rails server)
Comments
Post a Comment