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
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.
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.)