mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04: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:
committed by
Xavier Noria
parent
8c0c815ba7
commit
f48c56008e
@@ -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>."
|
||||
|
||||
Reference in New Issue
Block a user