Rails/Ransack: eq_all array of ids

Viewed 2142
@array = [1, 2, 3, 4]

I have the following input

= f.input :organism_id_eq_all, collection: @array

But it doesn't work in ransack, I get the following sql:

SELECT ... WHERE `organism_id` IN (0)

What's wrong with my code?

Thanks.

1 Answers
Related