Skip to content

Commit

Permalink
update ActionMailer example using last truncate helper method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
avakhov committed Sep 26, 2011
1 parent 893ee7f commit 80f1d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionmailer/lib/action_mailer/base.rb
Expand Up @@ -100,12 +100,12 @@ module ActionMailer #:nodoc:
# You can even use Action Pack helpers in these views. For example: # You can even use Action Pack helpers in these views. For example:
# #
# You got a new note! # 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: # 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 %>! # You got a new note from <%= message.from %>!
# <%= truncate(@note.body, 25) %> # <%= truncate(@note.body, :length => 25) %>
# #
# #
# = Generating URLs # = Generating URLs
Expand Down

0 comments on commit 80f1d40

Please sign in to comment.