Forum: Ruby on Rails Re: contoller code mysteries

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Andrej Baran (Guest)
on 2006-02-03 19:13
(Received via mailing list)

i think the reason is:
in your first example (that works) :contidions is Array, while in your
second it is a String (at least it looks like that form the code you
provided) so it took it as an SQL WHERE fragment and not as an Array

there is no mystery to it and hope this helps

This topic is locked and can not be replied to.