got search functionality working in model, only works in rails console