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! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2010-Feb-23 22:17 UTC
Re: Rails 1.2.6: "can''t convert Enumerator into Array"
On Feb 23, 9:59 pm, James Brasel <james.bra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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?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> > Thanks!-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
James Brasel
2010-Feb-24 01:03 UTC
Re: Rails 1.2.6: "can''t convert Enumerator into Array"
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 Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Feb 23, 9:59 pm, James Brasel <james.bra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > 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? > > 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 > > > > > Thanks! > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.