Problems getting a particular version

I am running on windows and try the following command to no avail:
gem install rails --version 2.2.2

and I get back:

ERROR: could not find rails locally or in a repository.

Why do I get this error? How do I fix it?

You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.