Hi! I have a model called produccion_alternativa. I added a new inflection rule in config/initializers/inflections.rb, like this: inflect.irregular('produccion_alternativa', 'producciones_alternativas')
I have other model called productor that has a relation with produccion_alternativa: class Productor < ActiveRecord::Base has_many :producciones_alternativas
class ProduccionAlternativa < ActiveRecord::Base belongs_to :productor
When a I try to get all the producciones_alternativas for a productor, I get this error: irb(main):010:0> Productor.first.producciones_alternativas NameError: uninitialized constant Productor::ProduccionesAlternativa
Any ideas? Thank you very much