haml issues on search functionality