Look [here](https://github.com/gena-admin/test-system/blob/master/app/controllers/attack/answers_controller.rb)