Config rails for AngularJS