diff options
author | Kevin Hughes <kevtufc@gmail.com> | 2010-09-23 21:44:22 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-09-24 00:58:43 +0200 |
commit | f48c56008e76e125d96a8d6cf4decc53e28414fa (patch) | |
tree | c785fdf2aff5bab31497cdf26ec58fe3992fbd86 /actionpack/lib/action_view | |
parent | 8c0c815ba711c439cbc4d295c423d5d6ab0bb848 (diff) | |
download | rails-f48c56008e76e125d96a8d6cf4decc53e28414fa.tar.gz rails-f48c56008e76e125d96a8d6cf4decc53e28414fa.tar.bz2 rails-f48c56008e76e125d96a8d6cf4decc53e28414fa.zip |
Changed documentation for auto_link so that the truncate example works [#5694 state:resolved]
Signed-off-by: Xavier Noria <fxn@hashref.com>
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 46af3012d9..3bc5afc2c4 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -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>." |