reverting to rails 2.2
Before I picked up the Simply Rails book, I had been messing around with rails. I updated to rails 2.3 just for kicks, but now want to revert to 2.2 since v2 it is what the book is using.
I do the following
sudo gem update rails -v 2.2
>>Updating installed gems
>>GET 200 OK: h ttp://ge ms.rubyforg e.org/latest_specs.4.8.gz
>>Nothing to update
I can't seem to return to version 2.2. Any ideas?
I had installed rails and a few other things without 'sudo', so they ended up being located in a different place in my case it was /Users/<username>/.gem/ruby/1.8
Apparently simply doing an update or uninstall did not access that directory, so what I had to do was find out where it was located:
%gem list -d rails
and uninstall it from that dir explicitly
%gem uninstall --install-dir /Users/<username>/.gem/ruby/1.8
>>in addition to the gem? [Yn] Y
>>Successfully uninstalled rails-2.2.2
Thought someone else might find this helpful.