1
0
Fork 0
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:
Yves Senn 2013-11-15 16:11:26 +01:00
parent b33a752f99
commit e7c90e646b

View file

@ -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"