old_contents: craftEd.controller('RecsController', ['$scope', '$http', '$location', function($scope, $http, $location){
  
    var config = {
      headers: {
        'content-type': 'application/json'
      }
    };
  
    var tokens = {
      headers: {
        "access-token": window.sessionStorage.token,
        "token-type": "Bearer",
        "client": window.sessionStorage.client,
        "expiry": window.sessionStorage.expiry,
        "uid": window.sessionStorage.uid
      }
    };
  
    var tokensConfig = {
      headers: {
        'content-type': 'application/json',
        "access-token": window.sessionStorage.token,
        "token-type": "Bearer",
        "client": window.sessionStorage.client,
        "expiry": window.sessionStorage.expiry,
        "uid": window.sessionStorage.uid
      }
    };
  
    $http.get(rootUrl + '/users/:id/beer_types/rec_new', tokens)
      .then(function(response){
        $scope.allNewRecs= response.data
        $scope.rootUrl= rootUrl
      });
  
    $scope.selectBeer = function(newRecId){
      console.log(rootUrl +'/users/:user_id/beer_types/' + newRecId + '/tried_beer_ratings/new')
      $http.get(rootUrl +'/users/:user_id/beer_types/' + newRecId + '/tried_beer_ratings/new', tokens)
      $location.path('/rating');
    }
  }]);
  
new_contents: craftEd.controller('RecsController', ['$scope', '$http', '$location', function($scope, $http, $location){
  
    var config = {
      headers: {
        'content-type': 'application/json'
      }
    };
  
    var tokens = {
      headers: {
        "access-token": window.sessionStorage.token,
        "token-type": "Bearer",
        "client": window.sessionStorage.client,
        "expiry": window.sessionStorage.expiry,
        "uid": window.sessionStorage.uid
      }
    };
  
    var tokensConfig = {
      headers: {
        'content-type': 'application/json',
        "access-token": window.sessionStorage.token,
        "token-type": "Bearer",
        "client": window.sessionStorage.client,
        "expiry": window.sessionStorage.expiry,
        "uid": window.sessionStorage.uid
      }
    };
  
    $http.get(rootUrl + '/users/:id/beer_types/rec_new', tokens)
      .then(function(response){
        $scope.allNewRecs= response.data
        $scope.rootUrl= rootUrl
      });
  
    $scope.selectBeer = function(newRecId){
      $http.get(rootUrl +'/users/:user_id/beer_types/' + newRecId + '/tried_beer_ratings/new', tokens)
      $location.path('/rating');
    }
  }]);
  
subject: Update new recs view and controller 2