sample of rails works with angularjs