Rails 1.2.6: "can't convert Enumerator into Array"

I was recently using the latest version of rails, until I found out
that the book I was using required an older version. I uninstalled my
other versions and installed rails 1.2.6, however, I get the following
message when I try to create a project:

me@darkstar:~$ rails proj
can’t convert Enumerator into Array

Here is some info:

me@darkstar:~$ rails -v
Rails 1.2.6
me@darkstar:~$ ruby -v
ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]
me@darkstar:~$ gem -v
1.3.5

Is there a different version of ruby or gem I should be running for
rails 1.2.6? What could be the problem? What other info should I
provide?

Thanks!

On Feb 23, 9:59 pm, James B. [email protected] wrote:

me@darkstar:~$ rails -v
Rails 1.2.6
me@darkstar:~$ ruby -v
ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]
me@darkstar:~$ gem -v
1.3.5

Is there a different version of ruby or gem I should be running for
rails 1.2.6? What could be the problem? What other info should I
provide?

The first version of rails that was compatible with ruby 1.9 was rails
2.3 so you’re quite a few versions behind. You could install ruby
1.8.4, as I definitely remember using that version of ruby with rails
1.x, but you should probably look at acquiring a book that isn’t
several years out of date as a lot of things in rails have changed
since then.

Fred

Is there a specific version of rubygems I should install with rails
1.8.4?

(The book I’m using is Wrox’s Beginning Ruby on Rails. I’m using this
book because it has exercises in it. If you know of a more recent
book that has exercises in it, that would be great.)

On Feb 23, 5:17 pm, Frederick C. [email protected]