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
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:266:in `load_missing_constant' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:452:in `const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:464:in `const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ inflector.rb:250:in `constantize' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ core_ext/string/inflections.rb:148:in `constantize' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/ pagination.rb:195:in `paginator_and_collection_for' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/ pagination.rb:130:in `paginate' app/controllers/admin_controller.rb:12:in `list'
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 name.
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.
Thanks Dave