From f48c56008e76e125d96a8d6cf4decc53e28414fa Mon Sep 17 00:00:00 2001 From: Kevin Hughes Date: Thu, 23 Sep 2010 21:44:22 +0100 Subject: Changed documentation for auto_link so that the truncate example works [#5694 state:resolved] Signed-off-by: Xavier Noria --- actionpack/lib/action_view/helpers/text_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/helpers/text_helper.rb') 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 http://www.m.... # Please e-mail me at me@email.com." -- cgit v1.2.3