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

  • Home
  • SEARCH
  • 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 8938421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:37:15+00:00 2026-06-15T10:37:15+00:00

If I do gem list rack-cache in rails command prompt then it shows no

  • 0

If I do gem list rack-cache in rails command prompt then it shows no gem with that name but if I do bundle show rack-cache then it gives me the path like /vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2 of where the gem is stored.

I didn’t understood this behavior because if the gem is present in the path with the latter command then why its not showing when I gives gem list rack-cache command.
What’s the difference.

  • 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-15T10:37:16+00:00Added an answer on June 15, 2026 at 10:37 am

    The confusion comes from the issue bundler is solving.

    When you install Gems into your system-wide gem repository you end up with multiple versions of the gem once you have a couple of apps.

    So for example you could end up with 3 Rails versions: 3.2.8, 3.2.6 and 3.1.0

    If you do a require rails rubygems could use any of these versions and you’ll end up with confusion if your App that was initially built against 3.1.0 isn’t compatible with some change s in 3.2.8.

    What bundler does is install exactly the gems that are specified in the Gemfile.lock and locks those down for the use of that app. Bundler therefore modifies the load-paths for rubygems so only the Gems in the Gemfile.lock are really available to the app.

    Therefore bundle install is not installing gems into the system-wide gem directory but rather installs to a different path for each project. That’s why you see the gem in a bundler directory and not system wide.
    If you install rack-cache through gem install you’ll also see it in gem list.

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

Sidebar

Related Questions

For example, in rails you can do a 'gem list' and it will show
I understand that Rails is a gem. Which means when I run gem list
I'm trying to install rails on Ubuntu 9.10. gem list --local *** LOCAL GEMS
Currently in my console I type gem list and it shows two versions of
rails is installed... running gem list rails returns rails (3.2.1) .. however when i
HI, i am working in Rails .. my gem list is *** LOCAL GEMS
In the Gemfile, I wrote gem 'rails' . gem list returns rails (3.1.3, 3.1.1,
I get an error when i run: vagrant@vagrantup:~$ sudo gem list ERROR: Loading command:
I already gem bundler in system. I check gem list. it show: *** LOCAL
Strange... but this is what I got : $ gem list | grep rvm

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.