Conditions with whitespaces in activerecord find
Posted
by so1o
on Stack Overflow
See other posts from Stack Overflow
or by so1o
Published on 2010-03-09T03:58:07Z
Indexed on
2010/03/09
4:06 UTC
Read the original article
Hit count: 586
So i am trying to do this
Order.find :all, :conditions => "org = 'test org'"
what ends up firing is
SELECT * FROM `orders` WHERE (org = 'test org')
the whitespace in the argument gets stripped. what am i missing.. im really stumped here. please help!
© Stack Overflow or respective owner