angularjs bootstrap to rails api