Newbie: Searcing database via user form input?

try something like:

my_params = {}

my_params.merge( :city => params[:city])

A