Forum: Ruby on Rails simple scaffold question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
McClain (Guest)
on 2005-12-28 20:34
(Received via mailing list)
How do I get scaffold to generate code for a table whos name is not
of the modelname I give to it. I.E., If I have an existing database, and
wish to generate scaffold code for existing tables, is this possible???
Chris Lowder (Guest)
on 2005-12-29 01:00
(Received via mailing list)
you can turn off pluralization by adding the following to your
environment.rb file -

ActiveRecord::Base.pluralize_table_names = false
This topic is locked and can not be replied to.