write rails controller for searching with querry string