[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

New to Ruby, question about gem

Greg Akins

8/1/2008 1:32:00 AM

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!
--
Posted via http://www.ruby-....

4 Answers

Pragash Mr.

8/1/2008 6:28:00 AM

0

Greg Akins 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"
--
Posted via http://www.ruby-....

Raveendran Jazzez

8/1/2008 11:51:00 AM

0

Greg Akins 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,
http://raveendran.wor...


--
Posted via http://www.ruby-....

Eric Hodel

8/1/2008 8:20:00 PM

0

On Jul 31, 2008, at 18:31 PM, Greg Akins 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.

What does `gem list` say?

Greg Akins

8/1/2008 8:34:00 PM

0

Eric Hodel 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.



--
Posted via http://www.ruby-....