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

**URL:** <https://www.ruby-forum.com/t/rails-1-2-6-cant-convert-enumerator-into-array/184026>\
**Category:** Rails\
**Created:** [February 23, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-cant-convert-enumerator-into-array/184026 "2010-02-23T23:16:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [February 23, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-cant-convert-enumerator-into-array/184026/1 "2010-02-23T23:16:02Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [February 23, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-cant-convert-enumerator-into-array/184026/2 "2010-02-23T23:18:22Z")

</div>

On Feb 23, 9:59 pm, James B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [February 24, 2010, 2:05am UTC](https://www.ruby-forum.com/t/rails-1-2-6-cant-convert-enumerator-into-array/184026/3 "2010-02-24T02:05:16Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
