rails-angularjs assignment