How can I force the singular table name on Rails scaffold generator?

ruby, ruby-on-rails, scaffolding

Solution

I think you want

ActiveRecord::Base.pluralize_table_names = false

Found this here:

http://justinram.wordpress.com/2006/04/04/pluralize-table-names-no-thanks/

http://guides.rubyonrails.org/3_1_release_notes.html

Problem

I'm working with a legacy database and need to create some CRUD's. How can I use the `scaffold` generator and tell him the exact name of the table avoiding the pluralize process?? Also the tables are in spanish.

Original source