# New to Ruby, question about gem

**URL:** <https://www.ruby-forum.com/t/new-to-ruby-question-about-gem/144677>\
**Category:** Ruby\
**Created:** [August 1, 2008, 3:32am UTC](https://www.ruby-forum.com/t/new-to-ruby-question-about-gem/144677 "2008-08-01T03:32:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akinsgre](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@akinsgre](https://www.ruby-forum.com/u/akinsgre)\
**Post date:** [August 1, 2008, 3:32am UTC](https://www.ruby-forum.com/t/new-to-ruby-question-about-gem/144677/1 "2008-08-01T03:32:24Z")

</div>

I had just installed Rails 2.1.0, or at least that’s the feedback I got  
when I typed “gem install rails”

However, when I look in my gem paths I see that rails-1.2.6 is the only  
directory there.

Am I missing something. Is Rails 2.1.0 stored somewhere else (gem  
environment gave me two paths, I checked them both).

Sorry if this is a stupid question, I’m still finding my way around.

Thanks!

---

<div class="post-metadata">

**Author:** ![akinsgre](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@akinsgre](https://www.ruby-forum.com/u/akinsgre)\
**Post date:** [August 1, 2008, 8:27am UTC](https://www.ruby-forum.com/t/new-to-ruby-question-about-gem/144677/2 "2008-08-01T08:27:58Z")

</div>

Greg A. wrote:

> I had just installed Rails 2.1.0, or at least that’s the feedback I got  
> when I typed “gem install rails”
> 
> However, when I look in my gem paths I see that rails-1.2.6 is the only  
> directory there.
> 
> Am I missing something. Is Rails 2.1.0 stored somewhere else (gem  
> environment gave me two paths, I checked them both).
> 
> Sorry if this is a stupid question, I’m still finding my way around.
> 
> Thanks!

If you installed any previous versions of rails…  
first remove completely then install latest version

if you want to remove gems  
in the command line type “sudo apt-get autoremove rubygems”

---

<div class="post-metadata">

**Author:** ![akinsgre](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@akinsgre](https://www.ruby-forum.com/u/akinsgre)\
**Post date:** [August 1, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/new-to-ruby-question-about-gem/144677/3 "2008-08-01T13:52:25Z")

</div>

Greg A. wrote:

> I had just installed Rails 2.1.0, or at least that’s the feedback I got  
> when I typed “gem install rails”
> 
> However, when I look in my gem paths I see that rails-1.2.6 is the only  
> directory there.
> 
> Am I missing something. Is Rails 2.1.0 stored somewhere else (gem  
> environment gave me two paths, I checked them both).
> 
> Sorry if this is a stupid question, I’m still finding my way around.
> 
> Thanks!

Hi Akins,

Path : C:\ruby\lib\ruby\gems\1.8\gems

C:\Documents and Settings\raveendran\>gem list | grep rails  
Brightbox rails deployment scripts for Capistrano  
rails (2.1.0, 1.2.3)  
(like the rails command does for Ruby on Rails, and the

C:\Documents and Settings\raveendran\>gem install rails # for latest  
version  
C:\Documents and Settings\raveendran\>gem install rails -v1.1.6 # for  
particular version

Regards,  
P.Raveendran,  
RF, Chennai,

> **[Raveendran](https://raveendran.wordpress.com)**
>
> Nothing is impossible...

---

<div class="post-metadata">

**Author:** ![akinsgre](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@akinsgre](https://www.ruby-forum.com/u/akinsgre)\
**Post date:** [August 1, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/new-to-ruby-question-about-gem/144677/4 "2008-08-01T22:35:10Z")

</div>

Eric H. wrote:

> What does `gem list` say?

OK, forgive me for this.

I’m using jruby. And I assumed that calling ‘jruby -S gems’ was the  
same as just using ‘gems’

Stupid assumption.

Turns out the gems paths were different.

I was kinda hoping that I wouldn’t have to use the jruby list for  
everything, thinking that in some cases asking Gems questions and Rails  
questions on their dedicated forums will get me better responses.

Of course, that assumes I’m asking good questions, which in this case I  
didn’t.

---

<div class="post-metadata">

**Author:** ![akinsgre](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@akinsgre](https://www.ruby-forum.com/u/akinsgre)\
**Post date:** [August 1, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/new-to-ruby-question-about-gem/144677/5 "2008-08-01T22:22:13Z")

</div>

On Jul 31, 2008, at 18:31 PM, Greg A. wrote:

> Sorry if this is a stupid question, I’m still finding my way around.

What does `gem list` say?
