# Ruby/Rails newb here. I need help getting started

**URL:** <https://www.ruby-forum.com/t/ruby-rails-newb-here-i-need-help-getting-started/114833>\
**Category:** Rails\
**Created:** [September 17, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/ruby-rails-newb-here-i-need-help-getting-started/114833 "2007-09-17T22:25:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wardrich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/67e7ee/32.png) [@wardrich](https://www.ruby-forum.com/u/wardrich)\
**Post date:** [September 17, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/ruby-rails-newb-here-i-need-help-getting-started/114833/1 "2007-09-17T22:25:48Z")

</div>

I’m trying to follow the videos over on  
[http://www.loudthinking.com/arc/000328.html](http://www.loudthinking.com/arc/000328.html).  
The first bit of it was fine, but then it says to type “ruby script  
\new\_controller Hello index”. My scripts folder doesn’t contain  
anything even similar to “new\_controller”. According to the generated  
“index.html” page, it says “Use script/generate to create your models  
and controllers” but it never really explains how to use generate to  
make a controller. I tried “ruby script\generate Hello index” and it  
didn’t work.

For the record, I’m using XP.

---

<div class="post-metadata">

**Author:** ![wardrich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/67e7ee/32.png) [@wardrich](https://www.ruby-forum.com/u/wardrich)\
**Post date:** [September 17, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/ruby-rails-newb-here-i-need-help-getting-started/114833/2 "2007-09-17T23:52:07Z")

</div>

On 9/17/07, wardrich [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m trying to follow the videos over on [http://www.loudthinking.com/arc/000328.html](http://www.loudthinking.com/arc/000328.html).  
> The first bit of it was fine, but then it says to type “ruby script  
> \new\_controller Hello index”. My scripts folder doesn’t contain  
> anything even similar to “new\_controller”. According to the generated  
> “index.html” page, it says “Use script/generate to create your models  
> and controllers” but it never really explains how to use generate to  
> make a controller. I tried “ruby script\generate Hello index” and it  
> didn’t work.

I’m not familiar with those videos, but the proper form would be:

ruby script/generate controller Hello index

“Hello” is the “base” name of your controller (The file created will  
be called app/controllers/hello\_controller.rb and the class will be  
HelloController), and “index” is an action you want to define within  
the controller. You can always add actions later, so this isn’t  
critical. It just creates a stub controller method and a stub view  
file.

---

<div class="post-metadata">

**Author:** ![wardrich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/67e7ee/32.png) [@wardrich](https://www.ruby-forum.com/u/wardrich)\
**Post date:** [September 18, 2007, 12:11am UTC](https://www.ruby-forum.com/t/ruby-rails-newb-here-i-need-help-getting-started/114833/3 "2007-09-18T00:11:15Z")

</div>

Hi, try using ‘generate’ instead of new\_controller. For example, “ruby  
script\generate controller Hello index” would be the proper for under  
Windows XP.

Good luck,

-Conrad
