I have a table: municipal_taxes and a model: MunicipalTax
which belongs_to :company
Company has_many :municipal_taxes
I get this error:
NameError: uninitialized constant Company::MunicipalTaxis
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:477:in `const_missing'
When I open up the console I see that:
"tax".pluralize # => "taxes"
"taxes".singularize # => "taxis"
"taxis".pluralize # => "taxes"
"taxis".singularize # => "taxi"
I corrected this with the Inflector in environment.rb but why might
this be happening?