# Uninitialized Constants in Scaffolds

**URL:** <https://www.ruby-forum.com/t/uninitialized-constants-in-scaffolds/64403>\
**Category:** Rails\
**Created:** [June 25, 2006, 12:03pm UTC](https://www.ruby-forum.com/t/uninitialized-constants-in-scaffolds/64403 "2006-06-25T12:03:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IEB](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c4cdca/32.png) [@IEB](https://www.ruby-forum.com/u/IEB)\
**Post date:** [June 25, 2006, 12:03pm UTC](https://www.ruby-forum.com/t/uninitialized-constants-in-scaffolds/64403/1 "2006-06-25T12:03:52Z")

</div>

I’ve just got the solution to a problem I’d been having.  
It looks like it’s quite common, so here goes:

When creating a scaffold page (using script/generate scaffold  
…)  
if you look at the pages it makes (through the server,  
http:\127.0.0.1:3000…)  
all pages work except LIST, which complains of  
Uninitialized Constant [your model name]

This seems to be to do with Rails’ use of convention instead of  
configuration:

- Database name should be lowercase. The first call to Rails  
my\_app should be identical (same lower case).

- Table names should be lower case and pluralised (ie topics, not topic  
or Topics)

- Calls to script/generate scaffold should be lower case and  
SINGULAR (ie topic, not topics or Topic or Topics)

I think this should be made more clear to n00bs like myself. I’m finding  
the online documentation for Rails is terrible. (Ruby has some great  
docs though).

I hope that helps anyone who was getting as frustrated as I was  
-IEB
