mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
update ActionMailer example using last truncate helper method signature
This commit is contained in:
parent
893ee7f71d
commit
80f1d402e5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue