mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
explain how to_param
wil truncate long values. [ci skip] refs #12900.
This commit is contained in:
parent
b33a752f99
commit
e7c90e646b
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ module ActiveRecord
|
|||
# user.id # => 123
|
||||
# user_path(user) # => "/users/123-fancy-pants"
|
||||
#
|
||||
# Values longer than 20 characters will be truncated. The value
|
||||
# is truncated word by word.
|
||||
#
|
||||
# user = User.find_by(name: 'David HeinemeierHansson')
|
||||
# user.id # => 125
|
||||
# user_path(user) # => "/users/125-david"
|
||||
|
|
Loading…
Reference in a new issue