2014-06-23 23:39:42 +02:00
|
|
|
# Preview all emails at http://localhost:3000/rails/mailers/note_mailer
|
|
|
|
class NoteMailerPreview < ActionMailer::Preview
|
2014-07-21 01:26:58 +02:00
|
|
|
# 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
|
|
|
|
|
2014-06-23 23:39:42 +02:00
|
|
|
# Preview this email at http://localhost:3000/rails/mailers/note_mailer/create
|
|
|
|
def create
|
|
|
|
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
|
2014-07-01 15:50:39 +02:00
|
|
|
NoteMailer.create Note.last
|
2014-06-23 23:39:42 +02:00
|
|
|
end
|
|
|
|
end
|