質問編集履歴
2
alert.mailer.rbの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -87,4 +87,19 @@
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
90
|
+
```
|
91
|
+
|
92
|
+
# 追記
|
93
|
+
|
94
|
+
**alert_mailer.rb**
|
95
|
+
```
|
96
|
+
class AlertMailer < ApplicationMailer
|
97
|
+
def send_alert(user)
|
98
|
+
@user = user
|
99
|
+
mail to: @user.email, subject: '練習記録を登録しましょう!'
|
100
|
+
# mail to: "#{@user.email}", subject: "Hello,#{@user.email}"
|
101
|
+
# mail to: user.email, subject: '練習記録を登録しましょう!'
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
90
105
|
```
|
1
send_alert.text.html.slimの表記を追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -58,10 +58,10 @@
|
|
58
58
|
|
59
59
|
```
|
60
60
|
|
61
|
-
**app/views/
|
61
|
+
**app/views/alert_mailer/send_alert.html.slim**
|
62
|
-
**app/views/
|
62
|
+
**app/views/alert_mailer/send_alert.text.html.slim**
|
63
63
|
```
|
64
|
-
=
|
64
|
+
= user.mail 様
|
65
65
|
|
66
66
|
この度は「TTManager」を利用頂きましてありがとうございます。
|
67
67
|
br/
|