On site search bar

You should take a look at acts_as_ferret:
http://projects.jkraemer.net/acts_as_ferret/

There's also a whole demo Rails project (containing a simple model
class, scaffolded CRUD GUI and a search form) available at
svn://projects.jkraemer.net/acts_as_ferret/trunk/demo