Ruby Forum Ruby on Rails > [ANN] acts_as_good_speeler - A fix for all those broken inflections in Rails

Posted by Jeremy McAnally (Guest)
on 26.01.2008 05:22
(Received via mailing list)
Howdy,
After having a patch to fix the inflections in Rails shot down and
watching Steven Baker's *VERIFIED* penis_enhancement.diff be set to
wontfix, my indignation has reached fever pitch!

Thus, acts_as_good_speeler is born: finally, a plugin that offers
proper fixes for the Rails inflector.  For a while now, there have
been a number of errors pointed out in the Rails inflector.  Usually,
the suggestion is to fix it in environment.rb or make a plugin.  Well,
this is that plugin.  You can see the tests for all the fixes (and,
yes fixes the pluralization of penis and pokemon!).

USAGE
------------
This overrides the built-in Inflector class, so you don't need to do
anything special.

Get the code:
    svn ci http://code.jeremymcanally.com/acts_as_good_speeler

Install it like so:
    script/plugin install 
http://code.jeremymcanally.com/acts_as_good_speeler

More information available at:
    http://agilewebdevelopment.com/plugins/acts_as_good_speeler


Patches and additions/corrections welcome.

Enjoy,
Jeremy

--
http://www.jeremymcanally.com/

My books:
Ruby in Practice
http://www.manning.com/mcanally/

My free Ruby e-book
http://www.humblelittlerubybook.com/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/