[Rails] Re: Rails' inflections are messy
At least they should fix the ones that are incorrect...
"Octopus".pluralize should return "Octopuses" and NOT "Octopi"... :)
Den torsdagen den 19:e juli 2012 kl. 20:23:15 UTC+2 skrev davidcelis:
On Thursday, July 19, 2012 11:22:40 AM UTC-7, davidcelis wrote:For anybody who shares my sentiment, until Rails core decides it's time to clean up their inflections, I've published a gem to provide more sane default pluralization/singularization rules: https://github.com/davidcelis/inflections Here's the difference:4 pluralization rules (down from 21)5 singularization rules (down from 27)3 irregularities (down from 7)1 uncountable (down from 10)Ahhh. Much better.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/rNreNAZ8nB4J.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home