質問編集履歴

2

alert.mailer.rbの追記

2020/07/01 05:17

投稿

ikutyan46
ikutyan46

スコア18

test CHANGED
File without changes
test CHANGED
@@ -177,3 +177,33 @@
177
177
  end
178
178
 
179
179
  ```
180
+
181
+
182
+
183
+ # 追記
184
+
185
+
186
+
187
+ **alert_mailer.rb**
188
+
189
+ ```
190
+
191
+ class AlertMailer < ApplicationMailer
192
+
193
+ def send_alert(user)
194
+
195
+ @user = user
196
+
197
+ mail to: @user.email, subject: '練習記録を登録しましょう!'
198
+
199
+ # mail to: "#{@user.email}", subject: "Hello,#{@user.email}"
200
+
201
+ # mail to: user.email, subject: '練習記録を登録しましょう!'
202
+
203
+ end
204
+
205
+ end
206
+
207
+
208
+
209
+ ```

1

send_alert.text.html.slimの表記を追記しました。

2020/07/01 05:16

投稿

ikutyan46
ikutyan46

スコア18

test CHANGED
File without changes
test CHANGED
@@ -118,13 +118,13 @@
118
118
 
119
119
 
120
120
 
121
- **app/views/alert_text.html.slim**
121
+ **app/views/alert_mailer/send_alert.html.slim**
122
122
 
123
- **app/views/alert_text.html.slim**
123
+ **app/views/alert_mailer/send_alert.text.html.slim**
124
124
 
125
125
  ```
126
126
 
127
- = @user.mail 様
127
+ = user.mail 様
128
128
 
129
129
 
130
130