1
0
Fork 0
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:
Alexey Vakhov 2011-09-26 21:52:16 +04:00
parent 893ee7f71d
commit 80f1d402e5

View file

@ -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