I have a Model named User.
It has two columns firstname, lastname.
There a record with id=1, firstname="srikanth" and lastname="Jeeva"
While Using search:
keyword = "Srikanth Jeeva"
And I write a Query:
User.find(:all, :conditions=>["firstname like ? or lastname like ?",
Ofcourse this will give 0 result, as firstname is "srikanth" and i'm
searching for "Srikanth Jeeva"
How can i write query for firstname and lastname, so that I can get the