Forum: Ruby on Rails Updating Rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ce43216111de0e63aad360f96651e970?d=identicon&s=25 Bob Cober (desertrubyist)
on 2007-01-08 06:39
I run:

sudo gem update rails

To get:
Updating installed gems...
Attempting remote update of rails
Successfully installed rails-1.1.6
Gems: [rails] updated

But:
 rails --version

Still yields:
Rails 1.0.0

Why?

Thanks for any feedback
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2007-01-08 11:06
(Received via mailing list)
Hi, you can do the following to update to 1.2 RC 2:

gem install rails --source http://gems.rubyonrails.org
--include-dependencies

Good luck,

-Conrad
0788f26db45fe53107203f227cd75cb6?d=identicon&s=25 Imobach González Sosa (Guest)
on 2007-01-08 11:35
(Received via mailing list)
2007/1/8, Bob Cober <rails-mailing-list@andreas-s.net>:
>
> But:
>  rails --version

Are you using GNU/Linux? If so, did you installed Rails 1.0.0 from
gems too? Or using your distro's packages? What about "gem list"?

See ya!
Ce43216111de0e63aad360f96651e970?d=identicon&s=25 Bob Cober (desertrubyist)
on 2007-01-08 19:05
I am using Mac OSX.

gem list
yeilds:
...
rails (1.1.6)
    Web-application framework with template engine, control-flow layer,
    and ORM.
...

Here it gets funny:
bob-cobers-computer:~/PRJGAME/Rings2 bobcober$ /opt/local/bin/rails
--version
Rails 1.1.6
bob-cobers-computer:~/PRJGAME/Rings2 bobcober$ which rails
/opt/local/bin/rails
bob-cobers-computer:~/PRJGAME/Rings2 bobcober$ rails --version
Rails 1.0.0
bob-cobers-computer:~/PRJGAME/Rings2 bobcober$ /usr/bin/rails --version
Rails 1.0.0

I am going to delete the older one in /usr/bin, but I am confused.

If 'which' lists /opt/local/bin why is it still using /usr/bin ?

Thanks for any feedback



Imobach González Sosa wrote:
> 2007/1/8, Bob Cober <rails-mailing-list@andreas-s.net>:
>>
>> But:
>>  rails --version
>
> Are you using GNU/Linux? If so, did you installed Rails 1.0.0 from
> gems too? Or using your distro's packages? What about "gem list"?
>
> See ya!
0ab6a5abab167b409f58d280dc59a229?d=identicon&s=25 Faisal N Jawdat (Guest)
on 2007-01-08 20:38
(Received via mailing list)
> But:
> rails --version
>
> Still yields:
> Rails 1.0.0
>
> Why?

What happens when you do a "which rails" and "whereis rails"?

-faisal
This topic is locked and can not be replied to.