added ruby code for the search form