[Rails] :conditions => ["phone like '%:phone%'" ,
{:phone => "555"}]
Loïc Guitaut
flink at khazad.net
Mon Mar 20 11:04:18 GMT 2006
Le Lundi 20 Mars 2006 11:59, Alain Ravet a écrit :
> Hi all,
>
Hi,
Try this :
Person.find :all, :conditions => ["phone like ?", "%" + phone + "%"]
I think it should work :)
--
,= ,-_-. =. Loïc Guitaut
((_/)o o(\_)) http://www.belfalas.org
`-'(. .)`-' Jabber ID : Flink at im.apinc.org
\_/ GnuPG KeyID : 0xA78CD85D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060320/8fb9b44c/attachment.bin
More information about the Rails
mailing list