add option to enable rails csrf, copy ng-model values to input values on submit