products and restaurants controllers in AngularJS and Rails