質問編集履歴

3

記述間違い修正

2019/03/27 08:20

投稿

Amkys
Amkys

スコア17

test CHANGED
File without changes
test CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
  Rendered lot_histories/index.csv.ruby within layouts/application (4.5ms)
44
44
 
45
- /home/afujishima/rails/develop/sample/app/views/layouts/application.slim:12: warning: string literal in condition
45
+ rails/develop/sample/app/views/layouts/application.slim:12: warning: string literal in condition
46
46
 
47
47
  Rendering text template
48
48
 

2

今だ問題解決出来ず、Download CSVボタン押下時のログを追記します。

2019/03/27 08:20

投稿

Amkys
Amkys

スコア17

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,49 @@
16
16
 
17
17
 
18
18
 
19
+ 今だ解決出来ず、情報として'Download CSV'ボタン押下時のログを記載します。
20
+
21
+
22
+
23
+ ### 'Download CSV'ボタン押下時のログ
24
+
25
+ **■Server Console**
26
+
27
+ Started GET "/lot_histories.csv?q%5Bprocessed_lot_num_cont%5D=&q%5Btool_id_cont%5D=1&q%5Bunit_cont%5D=" for [server IP Address] at 2019-03-27 17:09:57 +0900
28
+
29
+ Processing by LotHistoriesController#index as CSV
30
+
31
+ Parameters: {"q"=>{"processed_lot_num_cont"=>"", "tool_id_cont"=>"1", "unit_cont"=>""}}
32
+
33
+ User Load (2.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
34
+
35
+ ↳ vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2/lib/active_record/log_subscriber.rb:98
36
+
37
+ Rendering lot_histories/index.csv.ruby within layouts/application
38
+
39
+ LotHistory Load (3.0ms) SELECT "lot_histories".* FROM "lot_histories" WHERE "lot_histories"."tool_id" LIKE '%1%' LIMIT ? OFFSET ? [["LIMIT", 25], ["OFFSET", 0]]
40
+
41
+ ↳ app/views/lot_histories/index.csv.ruby:5
42
+
43
+ Rendered lot_histories/index.csv.ruby within layouts/application (4.5ms)
44
+
45
+ /home/afujishima/rails/develop/sample/app/views/layouts/application.slim:12: warning: string literal in condition
46
+
47
+ Rendering text template
48
+
49
+ Rendered text template (0.0ms)
50
+
51
+ Sent data lot_histories_20190327170958.csv (0.5ms)
52
+
53
+ Completed 200 OK in 145ms (Views: 0.3ms | ActiveRecord: 5.8ms)
54
+
55
+
56
+
57
+
58
+
59
+
60
+
19
- 問題のCSVファイル
61
+ ### **問題のCSVファイル**
20
62
 
21
63
  ```
22
64
 

1

2019/03/27 08:15

投稿

Amkys
Amkys

スコア17

test CHANGED
@@ -1 +1 @@
1
- rails:検索結果をCSVダウンロードしたが、内容がHTML形式?になって
1
+ rails:検索結果をCSV形式でダウンロードしたい。
test CHANGED
File without changes