ready? follow up:
- install ferret gem
:
gem install ferret
- install ferret plugin:
script/plugin install svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret
- at your model add the following line:
act_as_ferret or customize your search to only some fields like this: act_as_ferret :fields => [:name, :firstname, :surename]
- now your database fields are searchable.
to search your data type: .find_by_contents("osama OR dwairi") and walk through them as array