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:
parent
8c0c815ba7
commit
f48c56008e
1 changed files with 1 additions and 1 deletions
|
@ -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>."
|
||||
|
|
Loading…
Reference in a new issue