mariowise mariowise - 1 year ago 93
Ruby Question

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

I'm working with a legacy database and need to create some CRUD's. How can I use the

generator and tell him the exact name of the table avoiding the pluralize process??

Also the tables are in spanish.

Answer Source

I think you want

ActiveRecord::Base.pluralize_table_names = false

Found this here:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download