Skip to content
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

Should depend on jquery-rails #25

Closed
singpolyma opened this issue Jan 25, 2016 · 3 comments
Closed

Should depend on jquery-rails #25

singpolyma opened this issue Jan 25, 2016 · 3 comments

Comments

@singpolyma
Copy link

since it is required to work

@whatcould
Copy link
Owner

jQuery is required, but not jquery-rails — you only really need jquery-rails if you're using UJS, which a lot of devs don't use.

@singpolyma
Copy link
Author

How else would you suggest to put in jquery so this gem will work?

@whatcould
Copy link
Owner

  • You could just drop the jquery library in vendor/assets/javascripts/jquery.js, like everybody used to do.
  • You could just add a script tag that points a hosted (CDN) jquery URL.
  • I like using the jquery-rails-cdn gem, which references jQuery on a CDN on production but will fallback to a local version, like when you're on a laptop without an internet connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants