### Example: ``` inflection.titleize("x-men:-the-last-stand") "X-Men:-the-Last-Stand" ``` ### For comparison on Rails 4.2: ``` Loading development environment (Rails 4.2.7.1) irb(main):001:0> ActiveSupport::Inflector.titleize("x-men:-the-last-stand") => "X Men: The Last Stand" ``` ### And Rails 5: ``` Loading development environment (Rails 5.1.1) irb(main):001:0> ActiveSupport::Inflector.titleize("x-men:-the-last-stand") => "X Men: The Last Stand" ```
Activity
CristhianMotoche commentedon Nov 30, 2023
I was expecting
camelizeandhumanizeto work the same but I also experience that it doesn't affect dasherized words:Is this also expected?
CristhianMotoche commentedon Nov 30, 2023
I would also expect
underscoreto replace dasherized words but it doesn't:Would it make sense to make
underscorereplace-with_?