app/mailers/email_subscription_mailer.rb
def thankyou_email(email_subscription)
    # p email_subscription
    @email_subscription = email_subscription
    # p @email_subscription
    @unsubscribe_url = "http://sheltered-stream-93214.herokuapp.com/#/main/email_subscrition?email=#{email_subscription.email}"
    

    mail to: email_subscription.email, subject: "Thank you for subscribing"
  end
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
#   en.email_subscription_mailer.thankyou_email,.subject
#
Subject can be set in your I18n file at config/locales/en.yml
with the following lookup.


Subject can be set in your I18n file at config / locales / en . yml with the following lookup .
def thankyou_email(email_subscription)
    @email_subscription = email_subscription
    @unsubscribe_url = "http://sheltered-stream-93214.herokuapp.com/#/main/email_subscrition?email=#{email_subscription.email}"
    mail to: email_subscription.email, subject: "Thank you for subscribing"
  end
def thankyou_email ( email_subscription ) @email_subscription = email_subscription @unsubscribe_url = "http://sheltered-stream-93214.herokuapp.com/#/main/email_subscrition?email=#{email_subscription.email}" mail to : email_subscription . email , subject : "Thank you for subscribing" end
Subject can be set in your I18n file at config/locales/en.yml
with the following lookup:
Subject can be set in your I18n file at config / locales / en . yml with the following lookup :
# p email_subscription # p @email_subscription
email_subscription