Module: MailsViewer::HomeHelper

Defined in:
app/helper/mails_viewer/home_helper.rb

Instance Method Summary collapse

Instance Method Details

#attachment_path(filename, attachment_name) ⇒ Object



7
8
9
# File 'app/helper/mails_viewer/home_helper.rb', line 7

def attachment_path(filename, attachment_name)
  url_for(controller: "mails_viewer/home", action: :attachment, filename: filename, attachment: attachment_name)
end

#email_path(filename, format = :raw) ⇒ Object



3
4
5
# File 'app/helper/mails_viewer/home_helper.rb', line 3

def email_path(filename, format = :raw)
  url_for(controller: "mails_viewer/home", action: format, filename: filename)
end