app/mailers/mailer.rb
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
#   en.actionmailer.mailer.send_notification.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_questionnaire_notification(user, questionnaire)
    @locale = questionnaire.language.locale
    headers = {
      :from => 'Bnei Baruch <noreply@svivatova.com>',
      :subject => I18n.t('notification.mailer.new_questionnaire_for_you', :locale => @locale),
      :to => user.email,
      :date => Time.now.to_formatted_s(:rfc822)
    }
    @user = user
    @questionnaire = questionnaire
    mail(headers) do |format|
      format.text
      format.html
    end
  end
def send_questionnaire_notification ( user , questionnaire ) @locale = questionnaire . language . locale headers = { :from => 'Bnei Baruch <noreply@svivatova.com>' , :subject => I18n . t ( 'notification.mailer.new_questionnaire_for_you' , :locale => @locale ) , :to => user . email , :date => Time . now . to_formatted_s ( :rfc822 ) } @user = user @questionnaire = questionnaire mail ( headers ) do | format | format . text format . html end 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 :
user
<not_specific>
questionnaire
<not_specific>