spinjs-rails icon indicating copy to clipboard operation
spinjs-rails copied to clipboard

Spin.js not found

Open orenyk opened this issue 11 years ago • 5 comments
trafficstars

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!

orenyk avatar Oct 19 '14 21:10 orenyk

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)

dnagir avatar Oct 20 '14 01:10 dnagir

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 avatar Oct 20 '14 01:10 orenyk

@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.

dnagir avatar Oct 21 '14 04:10 dnagir

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 avatar Dec 16 '14 23:12 exalted

@exalted Had the same confusion. I left out //= require spin since I thought //= require jquery.spin was all I needed.

tboyko avatar May 05 '15 20:05 tboyko