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.
發佈了26 篇原創文章 · 獲贊 0 · 訪問量 1848
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章