Permalink
Browse files

update ActionMailer example using last truncate helper method signature

  • Loading branch information...
1 parent 893ee7f commit 80f1d402e5aa1c303f448a2fadc6df1b1f49cddf @avakhov avakhov committed Sep 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 80f1d40

Please sign in to comment.