undefined method `reset' for {}:Hash Did you mean? reject