Displaying 1 result from an estimated 1 matches for "another_template".
2011 Jul 07
0
Rails3 Mailer html / text versions order
...ot;notifications-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
def welcome_email(user)
@user = user
@url = "http://example.com/login"
mail(:to => user.email,
:subject => "Welcome to My Awesome Site") do |format|
format.html { render ''another_template'' }
format.text { render ''another_template'' }
end
end
MY USER MAILER =======
def analysis_received(user_id, clip_id, request_id)
...... skipped lines ......
@template = "user_mailer/#{I18n.locale.to_s}/
analysis_received.erb"
mail(:...