Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7840729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:53:40+00:00 2026-06-02T15:53:40+00:00

How do I know/check whether I have jQuery installed in my rails project? I

  • 0

How do I know/check whether I have jQuery installed in my rails project? I am writing some jQuery code and would like to ensure I have the prerequisites installed correctly.
I realize there is a gem to do this but I was wondering if someone can point out a way to install jQuery with the gem and also without the gem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:53:43+00:00Added an answer on June 2, 2026 at 3:53 pm

    In the latest versions of rails, jquery is automagically available in your apps without any further intervention by you, you can verify this by putting something like this in a view:

     <script type='text/javascript'>
       $('#mydiv').show();
     </script>
    
     <div id='mydiv' style='display:none'>
       TEST
     </div>
    

    If you see TEST when you load that view page, jquery is functioning.

    If you look at app/assets/javascripst/application.js, you’ll see that jquery.js is included in that manifest, and rails will get it loaded on all your pages. If you delete jquery.js from that file, it won’t be loaded. If you wanted to do that, (no real reason??), then you could download your desired version of jquery.js, stick it in ‘public/javascripts’, and put

    <%= javascript_include_tag 'jquery.js' %>
    

    Or you could put it in app/assets/javascripts as well, and the above code will get it loaded.

    app/assets/javascripts is the new preferred way as it makes use of the new assets pipeline features, but the old method, putting them in ‘public/javascripts’ will still work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a proper way to check whether a string is
I need to know whether check whether a String end with something like .xyz
I have done some research on how to check whether a user is within
Currently I have a scenario where I want to check whether writing a given
I have the following code where I need to check whether the attribute in
I know that I can check whether the linux timestamp in $time is today
Does anyone know of a utility that can check whether a HTTP request/response is
Does anybody know how to check for a valid IMEI? I have found a
Does anyone know how to check in the code to Visual svn server using
Alright, I know questions like this have probably been asked dozens of times, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.