We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inflection.titleize("x-men:-the-last-stand") "X-Men:-the-Last-Stand"
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"
Loading development environment (Rails 5.1.1) irb(main):001:0> ActiveSupport::Inflector.titleize("x-men:-the-last-stand") => "X Men: The Last Stand"
The text was updated successfully, but these errors were encountered:
I was expecting camelize and humanize to work the same but I also experience that it doesn't affect dasherized words:
camelize
humanize
camelize('hello-world') === 'Hello-world'
Is this also expected?
Sorry, something went wrong.
I would also expect underscore to replace dasherized words but it doesn't:
underscore
underscore('hello-world') === 'hello-world'
Would it make sense to make underscore replace - with _?
-
_
No branches or pull requests
Example:
For comparison on Rails 4.2:
And Rails 5:
The text was updated successfully, but these errors were encountered: