Ruby on rails teting out MVC code required to have a basic search functionality on simple data set