Links
acts_as_good_speeler
Categories
acts_as_good_speeler
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.
Eat that.
You don't have to do anything special to use this plugin. Just install it, and the plugin overrides the built-in Inflector class.
Vitals
| Home | http://www.jeremymcanally.com/ |
|---|---|
| Repository | http://code.jeremymcanally.com/acts_as_good_speeler |
| License | Rails' (MIT) |
| Tags |
|
| Rating | (1 vote) |
| Owner | Jeremy McAnally |
| Created | 26 January 2008 |
Comments
-
Haven't used the plugin yet, but from peeking at the code, it appears the plural of 'test' is 'testes'. Hah!
-
Good to see you've covered "pokémon" :)
-
'status'.singularize => "statu" 'alias'.singularize => "alia"
fix: inflect.singular(/(alias|status)$/i, '\1')
Ran into this using the streamlined plugin. It tried to convert 'RoomStatusesController' to 'RoomStatu' and complained that it could not find the appropriate model!
btw: Thanks Jeremy for acts_as_good_speeler

