Set permissions for admins in ability model. Established relationship in  votes and posts model.
Devise was added on application controller.