wrong path to ZeroClipboard.swf (404 not found)
endorfin opened this issue · comments
Hi,
i have the following problem: I am on my snippet detail page:
http://localhost:3000/snippets/1-test-snippet
when i click on my copy button, i get an 404 error
GET http://localhost:3000/snippets/ZeroClipboard.swf 404 (Not Found)
the ZeroClipboard.swf is accessible under ...
http://localhost:3000/assets/ZeroClipboard.swf
what is wrong?
using: Rails 3.2.9
@endorfin - where is the reference to http://localhost:3000/snippets/ZeroClipboard.swf
coming from? Is this something you have hard coded yourself?
nothing hard coded, the moviePath was not set
var clip = new ZeroClipboard( btn, {
moviePath: '/assets/ZeroClipboard.swf'
});
now it works!
@endorfin - hmm, this should automatically be set if you require
as suggested:
//= require zeroclipboard
Presumably you're not compiling the assets in the usual way?