15 lines
527 B
Ruby
15 lines
527 B
Ruby
# Preview all emails at http://localhost:3000/rails/mailers/note_mailer
|
|
class NoteMailerPreview < ActionMailer::Preview
|
|
# Preview this email at http://localhost:3000/rails/mailers/note_mailer/notify
|
|
def notify
|
|
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
|
|
NoteMailer.notify Note.last
|
|
end
|
|
|
|
# Preview this email at http://localhost:3000/rails/mailers/note_mailer/create
|
|
def create
|
|
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
|
|
NoteMailer.create Note.last
|
|
end
|
|
end
|