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

Changed documentation for auto_link so that the truncate example works [#5694 state:resolved]

Signed-off-by: Xavier Noria <fxn@hashref.com>
This commit is contained in:
Kevin Hughes 2010-09-23 21:44:22 +01:00 committed by Xavier Noria
parent 8c0c815ba7
commit f48c56008e

View file

@ -263,7 +263,7 @@ module ActionView
#
# post_body = "Welcome to my new blog at http://www.myblog.com/. Please e-mail me at me@email.com."
# auto_link(post_body, :html => { :target => '_blank' }) do |text|
# truncate(text, 15)
# truncate(text, :length => 15)
# end
# # => "Welcome to my new blog at <a href=\"http://www.myblog.com/\" target=\"_blank\">http://www.m...</a>.
# Please e-mail me at <a href=\"mailto:me@email.com\">me@email.com</a>."