質問編集履歴

5

typo

2017/04/28 08:56

投稿

azuno_mix
azuno_mix

スコア71

test CHANGED
File without changes
test CHANGED
@@ -50,7 +50,7 @@
50
50
 
51
51
  it "renders the headers" do
52
52
 
53
- expect(mail.subject).to eq(I18n.t("お知らせ")
53
+ expect(mail.subject).to eq("お知らせ")
54
54
 
55
55
  expect(mail.bcc.sort).to eq(Admin::User.all.pluck(:email).sort)
56
56
 

4

typo

2017/04/28 08:56

投稿

azuno_mix
azuno_mix

スコア71

test CHANGED
File without changes
test CHANGED
@@ -178,7 +178,7 @@
178
178
 
179
179
 
180
180
 
181
- `/app/model/admin/user.rb`
181
+ `/app/models/admin/user.rb`
182
182
 
183
183
 
184
184
 

3

adminモジュールのUserモデルについて追記

2017/04/28 07:11

投稿

azuno_mix
azuno_mix

スコア71

test CHANGED
File without changes
test CHANGED
@@ -167,3 +167,33 @@
167
167
  ちなみに、手動テストではどのメソッドも正常通りメールが送信されることが分かっています。
168
168
 
169
169
  ご教示いただければ幸いです。よろしくお願いいたします。
170
+
171
+
172
+
173
+ # 追記
174
+
175
+
176
+
177
+ ### Admin::Userモデルの構造について
178
+
179
+
180
+
181
+ `/app/model/admin/user.rb`
182
+
183
+
184
+
185
+ ```ruby
186
+
187
+ module Admin
188
+
189
+ class User < ApplicationRecord
190
+
191
+ devise :database_authenticatable, :validatable, :rememberable
192
+
193
+ validates :name, presence: true, uniqueness: true
194
+
195
+ end
196
+
197
+ end
198
+
199
+ ```

2

typo

2017/04/28 07:08

投稿

azuno_mix
azuno_mix

スコア71

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ```ruby
10
10
 
11
- class NotificationMailer < Admin::ApplicationMailer
11
+ class NotificationMailer < ApplicationMailer
12
12
 
13
13
  def hoge_method
14
14
 

1

typo

2017/04/28 06:16

投稿

azuno_mix
azuno_mix

スコア71

test CHANGED
File without changes
test CHANGED
@@ -102,7 +102,7 @@
102
102
 
103
103
  ```ruby
104
104
 
105
- From: /vagrant/paters_rails/app/mailers/notification_mailer.rb @ line5 NotificationMailer#hoge_method:
105
+ From: /app/mailers/notification_mailer.rb @ line5 NotificationMailer#hoge_method:
106
106
 
107
107
 
108
108
 
@@ -126,7 +126,7 @@
126
126
 
127
127
  [2] pry(#<NotificationMailer>)> exit
128
128
 
129
- From: /vagrant/paters_rails/app/mailers/notification_mailer.rb @ line5 NotificationMailer#hoge_method:
129
+ From: /app/mailers/notification_mailer.rb @ line5 NotificationMailer#hoge_method:
130
130
 
131
131
 
132
132