I am getting an error when trying to access a search page I have made. The problem seems to be that I am trying to remove blanks when there aren\'t any there. My search func
your problem is that params[:technols] is nil and you're trying to retrieve value of id key from a nil object. You need to instead do -
tech_ids = params[:technols][:id].reject(&:blank?) unless params[:technols].nil?