# Just a feedback

**URL:** <https://www.ruby-forum.com/t/just-a-feedback/100397>\
**Category:** Rails\
**Created:** [February 2, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/just-a-feedback/100397 "2006-02-02T18:10:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 2, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/just-a-feedback/100397/1 "2006-02-02T18:10:29Z")

</div>

Hello !

If you want to create models, views and controllers using the command  
line “sudo ruby ./script/generate scaffold book test”  
and rails is plugged to an existing database which tables are named in  
singular

Don’t forget that Rails will search a table named “books” even if you  
specify the table name “book” without “s”.  
Rails will return the error “Before updating scaffolding from new DB  
schema, try creating a table for your mode”  
Even if the name of the table is matching the name of the model  
specified in the command line

If you want to deactivate this behaviour, in case of testing RoRs with  
your existing database, you must add in your environment.rb file the  
following variable :  
ActiveRecord::Base.pluralize\_table\_names = false

HM
