An interesting helper of Rails

"pluralize" is a very insteresting helper of Rails,but it may be not very useful.It can return the plural word of what you pass into it.I have tested the 'knife' word and it returned the right answer:'knives'.
Then you can implement a util which pluralizes any words.

你可能感兴趣的:(Rails)