SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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
    rails -v
    >>Rails 2.3.0

    I can't seem to return to version 2.2. Any ideas?

    Thanks!

  2. #2
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    >>/Users/<username>/.gem/ruby/1.8

    and uninstall it from that dir explicitly

    %gem uninstall --install-dir /Users/<username>/.gem/ruby/1.8
    >>Remove executables:
    >> rails

    >>in addition to the gem? [Yn] Y
    >>Removing rails
    >>Successfully uninstalled rails-2.2.2


    %rails -v
    >>Rails 2.2.2


    Thought someone else might find this helpful.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •