# HELP! Strange script error

**URL:** <https://www.ruby-forum.com/t/help-strange-script-error/111213>\
**Category:** Rails\
**Created:** [August 3, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/help-strange-script-error/111213 "2007-08-03T20:59:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![redbaritone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/779978/32.png) [@redbaritone](https://www.ruby-forum.com/u/redbaritone)\
**Post date:** [August 3, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/help-strange-script-error/111213/1 "2007-08-03T20:59:53Z")

</div>

I type in “ruby script/generate” to get usage directions, and I get an  
error! Here it is:

$ruby script/generate  
/opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/routing.rb:965:in `build': Illegal route: the :controller must be specified! (ArgumentError) from /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/routing.rb:1172:in`add\_route’

I’m under the gun, so if anyone has any suggestions, I’d appreciate  
it.

Doug H.

---

<div class="post-metadata">

**Author:** ![redbaritone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/779978/32.png) [@redbaritone](https://www.ruby-forum.com/u/redbaritone)\
**Post date:** [August 3, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/help-strange-script-error/111213/2 "2007-08-03T21:01:53Z")

</div>

> I’m under the gun, so if anyone has any suggestions, I’d  
> appreciate it.
> 
> Doug H.

Check your route.rb file. If anything looks oddball, comment it out and  
see if it helps.

Regards,

Rich

---

<div class="post-metadata">

**Author:** ![redbaritone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/779978/32.png) [@redbaritone](https://www.ruby-forum.com/u/redbaritone)\
**Post date:** [August 3, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/help-strange-script-error/111213/3 "2007-08-03T21:12:55Z")

</div>

That was it, thanks! I wasn’t finished creating a “catch-all” route.
