Fix uninitialized constant when editing or creating trainings

![lol](http://i.imgur.com/GvIPBPl.gif)

@raymondtangsc, please review. Thanks! :)