Inflections Everywhere: Using ActiveSupport Inflector
Grammar is important, especially when it comes to following Rails conventions. But grammar is also hard, and languages have all sorts of exceptions! Rails’ ActiveSupport::Inflector
is a great tool when it comes to handling these linguistic roadblocks. This blog post walks through using the Inflector and writing your own custom inflections.
Post a comment