回答編集履歴

1

ソースの一部を変更。パラメータを受けるようにした。

2015/09/24 11:20

投稿

rifuch
rifuch

スコア1901

test CHANGED
@@ -46,9 +46,13 @@
46
46
 
47
47
  def send_to_all
48
48
 
49
+ title = params[:title]
50
+
51
+ content = params[:content]
52
+
49
53
  users = User.all
50
54
 
51
- UserMailer.all_notify(users, 'メール送信のタイトルです', 'メール送信の本文です。\nほげほげ').deliver
55
+ UserMailer.all_notify(users, title, content).deliver
52
56
 
53
57
  end
54
58