質問編集履歴

1

情報追加

2018/09/13 22:25

投稿

rowarubchinsky
rowarubchinsky

スコア20

test CHANGED
File without changes
test CHANGED
@@ -23,3 +23,31 @@
23
23
  上記のような形でlike句に配列を渡してあげたいのですがなぜかうまくいかないです。
24
24
 
25
25
  何かいい方法はありますか?
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ 追記
36
+
37
+ ===========
38
+
39
+ ActiveRecord::StatementInvalid (Mysql2::Error: Operand should contain 1 column(s): SELECT `guests`.* FROM `guests` WHERE ( gst_bln = 0
40
+
41
+ and gst_age >= 0
42
+
43
+ and gst_college >= 0
44
+
45
+ and gst_job_change >= 0
46
+
47
+ and gst_sex >= 0
48
+
49
+ and gst_from LIKE '%北海道%','%青森県%','%岩手県%')):
50
+
51
+ ===============
52
+
53
+ ログはこんな感じです。。。