Forum: Ruby on Rails simple scaffold question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A93c4933226843c95560a101b7ea1733?d=identicon&s=25 McClain (Guest)
on 2005-12-28 19:34
(Received via mailing list)
How do I get scaffold to generate code for a table whos name is not
plural
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???
A9f136bb1099c410158a6119c0633a40?d=identicon&s=25 Chris Lowder (Guest)
on 2005-12-29 00: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.