Add exceptions to Rails pluralization
Add this to config/application.rb:
Inflector.inflections do |inflection|
inflection.irregular "stave", "staves"
end
Written by Walid
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#