spinjs-rails
spinjs-rails copied to clipboard
Spin.js not found
When I upgraded the gem from 1.3 to 1.4 I started getting errors in Firebug "Error: Spin.js not present" that would cause my JS file not to load properly.
application.js:
...
//= require jquery.spin
...
Downgrading to 1.3 fixed the error. Hope that helps!
You'll need to manually require spin which was automatically done in v1.3 (same applies to jQuery but you probably require it somewhere else).
This was actually omission on my side but I may just keep it that way.
(See the v1.3 - v1.4 diff)
Got it, thanks for the quick reply. If you could add it to the readme that would probably help anyone else with the same issue. Thanks again!
@orenyk I'd probably prefer to require as was done in the previous versions.
But can't get my hands on it yet. I'll keep this issue open until I'll be able to do it.
This bit me real bad :confused: For some reason I was expecting to //= require either spin or jquery.spin, but not both (in that specific order.)
@exalted Had the same confusion. I left out //= require spin since I thought //= require jquery.spin was all I needed.