www.tutorialspoint.com Forum Index
Register FAQMemberlistUsergroupsTutorials PointLog in
Reply to topic Page 1 of 1
ror find usage
Author Message
Reply with quote
Post ror find usage 
Can anybody tell how to use like operator of sql with find in rubyonrails

My problem
@firstname=@search_contact_hash[:name_first]
@search_contact_result=Contact.find(:all,:conditions => ["name_first like '%@firstname%'"])

it is not working.How can I make it working?

View user's profile Send private message
Reply with quote
Post find 
Hi

Thanks for ur reply.Sorry for my very late reply..I used find_where instead of find.A pluggin EZ-where.

Thanks & regards
Sijo

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
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