From 60a833e8a395070e11dd46c7887c5dedd51d881b Mon Sep 17 00:00:00 2001 From: Kevin Hughes Date: Thu, 23 Sep 2010 21:44:22 +0100 Subject: [PATCH] Changed documentation for auto_link so that the truncate example works [#5694 state:resolved] --- 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 46af301..3bc5afc 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." -- 1.7.1