Reply to topic
Rails Find Question
skaplan


Joined: 06 Feb 2007
Posts: 5
Reply with quote
I am new to rails and wondering is there something like the mysql LIKE command in rails.

Thanks
Sam
pmeserve
HostMySite Tech

Joined: 19 Mar 2004
Posts: 178
Reply with quote
Sam, yeah LIKE should work just as you'd expect. e.g.:

Code:
Employee.find(:all, :conditions => 'shortname LIKE "Paul%"')
Rails Find Question
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic