Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update ActionMailer example using last truncate helper method signature

  • Loading branch information...
commit e9de9e266780dfe1c95bc10893593690843089bf 1 parent ef0f6ce
@avakhov avakhov authored vijaydev committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionmailer/lib/action_mailer/base.rb
View
4 actionmailer/lib/action_mailer/base.rb
@@ -101,12 +101,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
Please sign in to comment.
Something went wrong with that request. Please try again.