質問編集履歴

1

追記

2020/04/30 02:21

投稿

jasonwick
jasonwick

スコア12

test CHANGED
File without changes
test CHANGED
@@ -95,3 +95,47 @@
95
95
 
96
96
 
97
97
  宜しくお願いします。
98
+
99
+
100
+
101
+ ### 追記 ~account_activationの呼び出し箇所について~
102
+
103
+
104
+
105
+ 知識不足によりあっているか分かりませんがおそらくこの部分だと思います。
106
+
107
+
108
+
109
+ app/mailers/user_mailer.rb
110
+
111
+
112
+
113
+ ```ここに言語を入力
114
+
115
+ class UserMailer < ApplicationMailer
116
+
117
+
118
+
119
+ def account_activation(user)
120
+
121
+ @user = user
122
+
123
+ mail to: user.email, subject: "Account activation"
124
+
125
+ end
126
+
127
+
128
+
129
+ def password_reset
130
+
131
+ @greeting = "Hi"
132
+
133
+
134
+
135
+ mail to: "to@example.org"
136
+
137
+ end
138
+
139
+ end
140
+
141
+ ```