質問編集履歴

1

ログの内容を追記しました。

2017/08/22 05:49

投稿

koume
koume

スコア458

test CHANGED
File without changes
test CHANGED
@@ -89,3 +89,79 @@
89
89
  そこで、検索機能はそのまま機能させ、そのうえストロングパラメータは有効にしたままにするためにはどうしたらいいのでしょうか?
90
90
 
91
91
  どなたか教えてください。宜しくお願いします。
92
+
93
+
94
+
95
+ ログ表示の追記
96
+
97
+ ```ここに言語を入力
98
+
99
+ Started GET "/customers?utf8=%E2%9C%93&search%5Bfamily_name_kana%5D=&search%5Bgi
100
+
101
+ ven_name_kana%5D=%E3%82%B8%E3%83%AD%E3%82%A6&search%5Bbirth_year%5D=&search%5Bbi
102
+
103
+ rth_month%5D=&search%5Bbirth_mday%5D=&search%5Bgender%5D=&search%5Baddress_type%
104
+
105
+ 5D=&search%5Bprefecture%5D=&search%5Bcity%5D=&search%5Bpostal_code%5D=&search%5B
106
+
107
+ phone_number%5D=&search%5Blast_four_digits%5D=&commit=%E6%A4%9C%E7%B4%A2" for 10
108
+
109
+ .0.2.2 at 2017-08-22 05:37:38 +0000
110
+
111
+ Processing by Staff::CustomersController#index as HTML
112
+
113
+ Parameters: {"utf8"=>"✓", "search"=>{"family_name_kana"=>"", "given_name_kana"
114
+
115
+ =>"ジロウ", "birth_year"=>"", "birth_month"=>"", "birth_mday"=>"", "gender"=>"",
116
+
117
+ "address_type"=>"", "prefecture"=>"", "city"=>"", "postal_code"=>"", "phone_num
118
+
119
+ ber"=>"", "last_four_digits"=>""}, "commit"=>"検索", "host"=>"chibi.example.com"
120
+
121
+
122
+
123
+ StaffMember Load (0.5ms) SELECT `staff_members`.* FROM `staff_members` WHERE
124
+
125
+ `staff_members`.`id` = 11 LIMIT 1
126
+
127
+ Unpermitted parameters: :utf8, :search, :commit, :host
128
+
129
+ {}
130
+
131
+ Unpermitted parameters: :utf8, :search, :commit, :host
132
+
133
+ Rendering staff/customers/index.html.erb within layouts/staff
134
+
135
+ Rendered staff/customers/_search_form.html.erb (43.1ms)
136
+
137
+ (0.8ms) SELECT COUNT(DISTINCT `customers`.`id`) FROM `customers`
138
+
139
+ Customer Load (0.7ms) SELECT DISTINCT `customers`.* FROM `customers` ORDER B
140
+
141
+ Y `customers`.`family_name_kana` ASC, `customers`.`given_name_kana` ASC LIMIT 10
142
+
143
+ OFFSET 0
144
+
145
+ Rendered staff/customers/index.html.erb within layouts/staff (105.4ms)
146
+
147
+ Rendered staff/shared/_header.html.erb (1.0ms)
148
+
149
+ Rendered shared/_footer.html.erb (0.5ms)
150
+
151
+ Completed 200 OK in 207ms (Views: 198.3ms | ActiveRecord: 2.0ms)
152
+
153
+
154
+
155
+ ^C- Gracefully stopping, waiting for requests to finish
156
+
157
+ === puma shutdown: 2017-08-22 05:40:21 +0000 ===
158
+
159
+ - Goodbye!
160
+
161
+ Exiting
162
+
163
+
164
+
165
+ ```
166
+
167
+ と出ていました。