pass parameters from AngularJS to Rails server