Any help would be much appreciated as I am a total newbie. I know this
topic has come up before, but I am still struggling with it.
I am trying to do a remote install of 1.2.6 because I bought a couple of
books based on 1.2.x and I do not want to have to wrestle with errors
caused by having a 2.x version while I am a rank beginner and trying to
learn.
I keep getting an error message:
ERROR: could not find rails locally or in a repository
When I go to gems.rubyforge.org and follow the link to see the available
gems in my browser, it clearly shows all the old versions. However, if
I do a gem list command, only 2.0.2.
It appears the older versions are no longer hosted for remote
installation. Would somebody mind helping me with detailed instructions
on manually installing an older version, including where to get and
where to put all the files? Better yet, if there is a way to use gem to
find and remotely install them, I would appreciate those instructions as
well. Finally, why aren't the old versions hosted anymore?
One last thing... I am using Windows. I know, I know... but I am only
in the very early stages of teaching myself FreeBSD, and I trying to
reduce the number of variables in learning that, Ruby, and Rails all at
the same time.
When I do that (gem install rails --version 1.2.6) I get the following:
ERROR: could not find rails locally or in a repository
and when I do the following:
gem list rails --remote
I get the following output in the list:
...
rails (2.0.2)
...
There seems to be a discrepancy between what is listed as being
available and what actually is.
Any other suggestions?
gems.rubyforge.org contains a link to the gems themselves. They are
available, but somehow gem doesn't see them (had that happen to me, too,
just an hour ago).
Just download what you need, and gem install rails-1.2.6.gem will do the
rest (of course, done in the directory you downloaded the gems to).
I downloaded it to the following path (I am running it off a flash
drive):
F:\PortableApps\RubyPortable\App\Ruby\lib\ruby\gems\1.8\gems\rails-1.2.6>
I am not sure if that is the correct locaton, but it seems to work.
Aside from continually telling me it needed other gems (i.e.
actionmailer <= 1.3.6), and only generating documentation for rails and
actionmailer, everything seems to be fine.