fix generated scaffolds and helper methods

- create new helper methods to reference attempts and surveys on controllers