I ran into a problem whilst trying to titleize a string containing an acronym. For example:
"building an API".titleize
=> "Building An Api"
Not exactly what I was after but with a small change to the Inflector class you can define your own acronyms.
ActiveSupport::Inflector.inflections do |inflect| inflect.acronym "API" end
"Building An API".titleize