indexing working on rails side for public/private events