Forum: Ruby on Rails Re: contoller code mysteries

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
469a0b270c9ddec8d5226c9ef44c3699?d=identicon&s=25 Andrej Baran (Guest)
on 2006-02-03 18:13
(Received via mailing list)
Craig,

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

regards
Andrej
This topic is locked and can not be replied to.