installation problem

Hi all,

I'm a newbies for ruby and need some help for installation blocker.

I have my ruby installed "ruby 1.9.2dev (2010-07-11 revision 28613) [i686-linux]"

And then I install the rails sudo gem install rails --pre

but when I do rails -v, it shows Rails 2.3.8

[ Note: I've installed 2.3.8 few days ago. And today I tried to install the latest version. ]

So how I can use the latest version instead of the version I installed few days ago??

First check to see what versions of Rails you have installed on your computer sudo gem list --local rails

Then you can choose what version of Rails you want to use rails _2.3.8_ --version

Note: 2.3.8 is just an example. Put whatever version it is you want in there.

You can also delete previous versions of rails sudo gem cleanup

Hoped that helped. Anon_comp

Thanks,

so if I do not delete previous version, will that cause a problem??

Oops, this is what I got.

ryu@ryu-laptop:~$ sudo rails _3.0.0.beta4_ --version /usr/local/lib/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': RubyGem version error: rails(2.3.8 not = 3.0.0.beta4) (Gem::LoadError)   from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'   from /usr/local/lib/site_ruby/1.8/rubygems.rb:1082:in `gem'   from /usr/bin/rails:18 ryu@ryu-laptop:~$ rails -v Rails 2.3.8

Try without .beta4?

I haven't upgraded to Rails 3.0 so I don't know exactly how to fix this issue. I'd probably try removing all versions of Rails and install just 3.0 sudo gem uninstall rails

If that doesn't work, well, I don't know what to tell ya. Hope someone around here can help you.

-Anon_comp