Q:

'rails' command creates directory with /vendor/rails which uses wrong version of rails

For some reason when I run rails command, it installs 2.2.3 version of Rails in /vendor/rails and webbrick uses that version instead of 2.3.5 which is installed as a gem.
If I delete that, then it uses the right directory. I remember using git submodule once, but I don't think that has anything to do with this.
How can I correct this? Thanks
Edit:
I never installed Rails 2.2.3. Although I do vaguely remember using git submodule, if that helps anyone.

A:

Check your local gems, and your system gems.  Perhaps, you have it 2.2.3 installed in your user's bin.

