sync_slides by ruby on rails