diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2011-09-26 21:52:16 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2011-09-26 21:52:16 +0400 |
commit | 80f1d402e5aa1c303f448a2fadc6df1b1f49cddf (patch) | |
tree | 2574d5743647d1f15d85d3865e774b48197a4286 /actionmailer/lib | |
parent | 893ee7f71d8f6ebe127c6d06a459cec1affcc802 (diff) | |
download | rails-80f1d402e5aa1c303f448a2fadc6df1b1f49cddf.tar.gz rails-80f1d402e5aa1c303f448a2fadc6df1b1f49cddf.tar.bz2 rails-80f1d402e5aa1c303f448a2fadc6df1b1f49cddf.zip |
update ActionMailer example using last truncate helper method signature
Diffstat (limited to 'actionmailer/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index cb289fd693..ac49702ced 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -100,12 +100,12 @@ module ActionMailer #:nodoc: # You can even use Action Pack helpers in these views. For example: # # You got a new note! - # <%= truncate(@note.body, 25) %> + # <%= truncate(@note.body, :length => 25) %> # # If you need to access the subject, from or the recipients in the view, you can do that through message object: # # You got a new note from <%= message.from %>! - # <%= truncate(@note.body, 25) %> + # <%= truncate(@note.body, :length => 25) %> # # # = Generating URLs |