rails 3.2.11

My app needs a special query that searches an item from a Model.

Say, I have a model called Airport, having name:string field.
The app needs to find an airport by name.

One of the airport name is, for example,

"JFK New York USA"

Users may enter

"JFK"

well, this case it's easy.

But what if users enter

"jfk new" or "new york" or "JFK USA"  or "USA jfk"...

 so on?  Is it possible to develop a query to search corresponding
airport(s)?
Certainly some of them will end up with more than one result.

soichi

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to