Why is there a jQuery gem for rails 3.1? Seems easier to simply put the single minified file in the javascripts assets folder. Is it for code organization? (All prerequisites in the Gemfile). Is there something I’m missing?
Thanks so much!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Rails jQuery gem allows the developer to not only use jQuery in their own scripts, but also hooks up fancy Rails helpers like
remote_form_forto use jQuery for communication. So, not only does the gem provide the library, but it also provides Rails-specific hooks that would be a pain to code on one’s own.