D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
draper-1.4.0
/
spec
/
dummy
/
app
/
mailers
/
Filename :
post_mailer.rb
back
Copy
class PostMailer < ApplicationMailer default from: "from@example.com" layout "application" # Mailers don't import app/helpers automatically helper :application def decorated_email(post) @post = post.decorate mail to: "to@example.com", subject: "A decorated post" end private def goodnight_moon "Goodnight, moon!" end helper_method :goodnight_moon end