I have a table called rdf_classes and when I call the list page it throws an error saying it can''t load ''RdfClas''. I poked around and found the "singularize" method in inflector.rb. I put a statement in there and it is being called to singularize "RdfClass" and returns "RdfClas". I''ve added: [/(ss)$/i, ''\1''], # ADDED MAX as the second last entry of the array returned by singular_rules in the same file. Regexp were never my best friend, so there may be a better way of doing this. -max
I know this has been fixed for ''address'' in the beta and edge version... I had the same problem but it only affected the scaffolding... so i just did my own instead... Maximilian Ott wrote:>I have a table called rdf_classes and when I call the list page it throws an >error saying it can''t load ''RdfClas''. I poked around and found the >"singularize" method in inflector.rb. I put a statement in there and it is >being called to singularize "RdfClass" and returns "RdfClas". > >I''ve added: > > [/(ss)$/i, ''\1''], # ADDED MAX > >as the second last entry of the array returned by singular_rules in the same >file. Regexp were never my best friend, so there may be a better way of >doing this. > >-max > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails