Fix rails template and map search