I want to turn off table name pluralization, so I’ve added
ActiveRecord::Base.pluralize_table_names = false
at the end on my config/environment.rb
But I am getting an uninitialized constant error from paginator.
uninitialized constant Wherei
load_missing_constant' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:452:inconst_missing’
const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ inflector.rb:250:inconstantize’
constantize' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/ pagination.rb:195:inpaginator_and_collection_for’
My table name is ‘whereis’ and this seems to indicate that Rails is
trying to get the model name by removing the plural from the table
It would be helpful to know how to test whether table name
pluralization was turned off or whether I’ve missed a step it
disabling pluralization. I have not any documentation on this.