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?