I have views in my application that reference my application.js file, which contains the functions that I use throughout the application.
I just installed the Rails 3.1 release candidate after using the release version 3.1. Until I installed RC, I had no problems, but now I get this error:
ReferenceError: cannot find variable: indicator_tag
indicator_tag is a function defined in application.js. The only difference I noticed in the javascript file is that now all my functions are wrapped in:
(function() { ... }).call(this);
I understand that this is a variable scope? But can this prevent my pages from using these variables? And before anyone asks, I made sure the javascript paths are correct in my include tags.
javascript ruby-on-rails coffeescript
tanman May 22 '11 at 18:46 2011-05-22 18:46
source share