質問編集履歴
1
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,4 +10,18 @@
|
|
10
10
|
0, 0, 0, 0, like_words ])
|
11
11
|
|
12
12
|
上記のような形でlike句に配列を渡してあげたいのですがなぜかうまくいかないです。
|
13
|
-
何かいい方法はありますか?
|
13
|
+
何かいい方法はありますか?
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
追記
|
19
|
+
===========
|
20
|
+
ActiveRecord::StatementInvalid (Mysql2::Error: Operand should contain 1 column(s): SELECT `guests`.* FROM `guests` WHERE ( gst_bln = 0
|
21
|
+
and gst_age >= 0
|
22
|
+
and gst_college >= 0
|
23
|
+
and gst_job_change >= 0
|
24
|
+
and gst_sex >= 0
|
25
|
+
and gst_from LIKE '%北海道%','%青森県%','%岩手県%')):
|
26
|
+
===============
|
27
|
+
ログはこんな感じです。。。
|