Class: MailSpy::ReportsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- MailSpy::ReportsController
- Defined in:
- app/controllers/mail_spy/reports_controller.rb
Instance Method Summary collapse
Instance Method Details
#campaigns ⇒ Object
4 5 6 |
# File 'app/controllers/mail_spy/reports_controller.rb', line 4 def campaigns end |
#email ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/mail_spy/reports_controller.rb', line 12 def email @email = MailSpy.create_email({ :campaign => "2012-valentines", :stream => "a-yikes", :component => "a", :schedule_at => Date.today()+1, # Should never be used :subject => "Just a test", :template_values => {}, :from => "EMAIL PREVIEW", :reply_to => "NOREPLY", :to => "nowhere" }) @email[:cache_bust] = true render :text=>@email.parsed_html_content, :html_safe => true end |
#emails ⇒ Object
8 9 10 |
# File 'app/controllers/mail_spy/reports_controller.rb', line 8 def emails end |