File: welcome_controller.rb

package info (click to toggle)
ruby-email-spec 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 892 kB
  • sloc: javascript: 6,743; ruby: 2,550; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class WelcomeController < ApplicationController
  def signup
    UserMailer.signup(params['Email'], params['Name']).deliver_now
  end

  def confirm
  end

  def newsletter
    Delayed::Job.enqueue(NotifierJob.new(:newsletter, params['Email'],
                                         params['Name']))
  end

  def attachments
    UserMailer.email_with_attachment(params['Email'], params['Name'])
              .deliver_now
  end
end