I have had lots of trouble with deploying my rails 3.0.10 application to Ubuntu 10.04 server with Passenger, Capistrano, nginx and MySQL (and even more trouble with apache2)
I added this line to the top of file app/controllers/search_controller.rb
require 'resolv-replace'
Or alternatively you can put it to initializers/requires.rb