check in iteration rails model and controller and backbone model and collection