How to update Ruby gem version?

How can i update my Rails gem version. to 2.2.2.

Now it is .

gem - v

1.8.7

thanks in advance

amritpalpathakgne.wordpress.com

gem update --system try google for this

gem -v => 1.8.7

But i need 2.2.2.

How can i ?

Thanks

amritpalpathakgne.wordpress.com

How can i update my Rails gem version. to 2.2.2.
Now it is .

gem - v

1.8.7

thanks in advance

amritpalpathakgne.wordpress.com

Amrit, you can try the following:

gem install rails -v 2.2.2

Good luck,

-Conrad

Fetching: activerecord-2.2.2.gem (100%)

Fetching: actionpack-2.2.2.gem (100%)

Fetching: actionmailer-2.2.2.gem (100%)

Fetching: activeresource-2.2.2.gem (100%)

Fetching: rails-2.2.2.gem (100%)

Successfully installed activesupport-2.2.2

Successfully installed activerecord-2.2.2

Successfully installed actionpack-2.2.2

Successfully installed actionmailer-2.2.2

Successfully installed activeresource-2.2.2

Successfully installed rails-2.2.2

6 gems installed

Installing ri documentation for activesupport-2.2.2…

Installing ri documentation for activerecord-2.2.2…

Installing ri documentation for actionpack-2.2.2…

Installing ri documentation for actionmailer-2.2.2…

Installing ri documentation for activeresource-2.2.2…

Installing ri documentation for rails-2.2.2…

Installing RDoc documentation for activesupport-2.2.2…

Installing RDoc documentation for activerecord-2.2.2…

Installing RDoc documentation for actionpack-2.2.2…

Installing RDoc documentation for actionmailer-2.2.2…

Installing RDoc documentation for activeresource-2.2.2…

Installing RDoc documentation for rails-2.2.2…

But why gem -v still shows 1.8.7.?

amritpalpathakgne.wordpress.com

Amrit, there may be something within your environment which may be causing this issue. You’ll have

to check how you have installed things. In general, 1.8.7 usually refers to the version of Ruby installed

on your system. At this time, the latest version of Rubygems is 1.8.5 as far as I know.

Good luck,

-Conrad

How can i update my Rails gem version. to 2.2.2.
Now it is .

gem - v

1.8.7

oh yes .Its a 1.8.5.But it is latest version of it,why in

Rails project (i have just downloaded it),in

environment file it is mention that it need gem

2.2.2.

Thanks you

amritpalpathakgne.wordpress.com

How can i update my Rails gem version. to 2.2.2.
Now it is .

gem - v

1.8.7

oh yes .Its a 1.8.5.But it is latest version of it,why in

Rails project (i have just downloaded it),in

environment file it is mention that it need gem

2.2.2.

Hi, what version of Rails do you want to use?

-Conrad

Thanks

amritpalpathakgne.wordpress.com

If you’re using Rails 3.0.7, then you should have a Gemfile in the root

of your Rails project. Within the Gemfile, you would add an entry to

use Rails 3.0.7. For example,

gem ‘rails’, ‘3.0.7’

Next, you’ll run the bundle command at the root of your Rails project:

bundle install

Last but not least, I would highly recommend the following site:

http://ruby.railstutorial.org/

Good luck,

-Conrad

Strange!!

This project dont have Gemfile

Thanks

amritpalpathakgne.wordpress.com