# Script/generate error

**URL:** <https://www.ruby-forum.com/t/script-generate-error/185455>\
**Category:** Rails\
**Created:** [March 20, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/script-generate-error/185455 "2010-03-20T12:04:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azeem\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@Azeem\_S](https://www.ruby-forum.com/u/Azeem_S)\
**Post date:** [March 20, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/script-generate-error/185455/1 "2010-03-20T12:04:16Z")

</div>

Hello, I am trying to get my development environment going, and am  
stuck on the script/generate command which produces this error:

undefined method `index’ for #\<Enumerator: “Rails Info:”:each\_line\>

I’m in the correct directory. Running ubuntu 8.10. localhost:3000 is  
showing the welcome page.

Thanks for your time and help,  
zeem

---

<div class="post-metadata">

**Author:** ![Azeem\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@Azeem\_S](https://www.ruby-forum.com/u/Azeem_S)\
**Post date:** [March 20, 2010, 12:18pm UTC](https://www.ruby-forum.com/t/script-generate-error/185455/2 "2010-03-20T12:18:54Z")

</div>

On 20 March 2010 02:24, Azeem S [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello, I am trying to get my development environment going, and am  
> stuck on the script/generate command which produces this error:
> 
> undefined method `index’ for #\<Enumerator: “Rails Info:”:each\_line\>

What is the exact command you are entering, and show us the full stack  
trace please.  
Which version of Rails and Ruby?

Colin
