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:
parent
b2ed0b768d
commit
cd8edf19a6
1 changed files with 2 additions and 2 deletions
|
@ -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`.
|
||||
|
|
Loading…
Reference in a new issue