-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sprockets not loading javascript files. #67
Comments
+1. This appears to be broken currently. Anyone have a fix? |
Thanks guys. A pull request to fix this would be welcome. |
Looking into it. |
After a bit of digging I think this has to do with whether you're running Ruby 1.9.x or 2.x (though I haven't tested with an older ruby). Within sprockets, the code which processed directives depended on respond_to? searching protected methods (which it no longer did as of 2.0). Updating the sprockets dependency fixes the issue (it doesn't depend on respond_to? anymore), but it looks like the version of forge on rubygems.org still depends on sprockets 2.0.4. The easiest solution right now is to install from the source. |
Forge User's Manual says to inline secondary javascript files with sprockets syntax:
but final code just has //= require 'slider' in it.
Is extra config required for this to function?
The text was updated successfully, but these errors were encountered: