1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

docs: incorrect output from the parameterized method usage example

This commit is contained in:
Ivanov-Anton 2022-06-06 18:07:46 +03:00
parent b2ed0b768d
commit cd8edf19a6

View file

@ -1691,8 +1691,8 @@ To preserve the case of the string, set the `preserve_case` argument to true. By
To use a custom separator, override the `separator` argument.
```ruby
"John Smith".parameterize(separator: "_") # => "john\_smith"
"Kurt Gödel".parameterize(separator: "_") # => "kurt\_godel"
"John Smith".parameterize(separator: "_") # => "john_smith"
"Kurt Gödel".parameterize(separator: "_") # => "kurt_godel"
```
NOTE: Defined in `active_support/core_ext/string/inflections.rb`.