Smartlist/app/mailers/list_sender.rb
def send_list(email, active_products, current_user)
    @greeting = 'Hello'
    @active_list = active_products
    @current_user_email = current_user.email
    mail to: email, subject: "Shopping list from #{@current_user_email}"
  end
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
#   en.list_sender.send_list.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 send_list(email, active_products, current_user)
    @greeting = 'Hello'
    @active_list = active_products
    @current_user_email = current_user.email
    mail to: email, subject: "Shopping list from #{@current_user_email}"
  end
def send_list ( email , active_products , current_user ) @greeting = 'Hello' @active_list = active_products @current_user_email = current_user . email mail to : email , subject : "Shopping list from #{@current_user_email}" 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 :
email
active_products
current_user