Rails filter slowley forming