I just got this error: uninitialized constant PriceCurf After much head scratching I remembered the Rails plural to singular mapping rules. My table is price_curves, my object is PriceCurve ... whereas I am guessing Rails thinks the singular ought to br PriceCurf ?! I'm sure there is a simple way around this linguistic blunder that doesn't involve the use of pigeon English. Funny though.
on 2006-03-28 14:57
on 2006-03-28 15:07
Sean Blezard wrote: > doesn't involve the use of pigeon English. > > Funny though. Check http://api.rubyonrails.org/classes/Inflector/Infle... to see how you can add exceptions to the rules Rails uses for the tranformations from class to table names and such... Michael
on 2006-03-28 15:10
Just adding the :class_name parameter seems to override the default inference. That's a very acceptable work around.