質問編集履歴
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -77,3 +77,47 @@
|
|
77
77
|
|
78
78
|
|
79
79
|
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
呼び出し元です
|
84
|
+
|
85
|
+
↓
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
# Preview all emails at http://localhost:3000/rails/mailers/user_mailer
|
92
|
+
|
93
|
+
class UserMailerPreview < ActionMailer::Preview
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
# Preview this email at http://localhost:3000/rails/mailers/user_mailer/account_activation
|
98
|
+
|
99
|
+
def account_activation
|
100
|
+
|
101
|
+
user = User.first
|
102
|
+
|
103
|
+
user.activation_token = User.new_token
|
104
|
+
|
105
|
+
UserMailer.account_activation(user)
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
# Preview this email at http://localhost:3000/rails/mailers/user_mailer/password_reset
|
112
|
+
|
113
|
+
def password_reset
|
114
|
+
|
115
|
+
UserMailer.password_reset
|
116
|
+
|
117
|
+
end
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
end
|
122
|
+
|
123
|
+
```
|