Using object class name and id to build the id when adding, updating and deleting active record object from index