aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hughes <kevtufc@gmail.com>2010-09-23 21:44:22 +0100
committerXavier Noria <fxn@hashref.com>2010-09-24 00:58:43 +0200
commitf48c56008e76e125d96a8d6cf4decc53e28414fa (patch)
treec785fdf2aff5bab31497cdf26ec58fe3992fbd86
parent8c0c815ba711c439cbc4d295c423d5d6ab0bb848 (diff)
downloadrails-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>
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb2
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>."