moved angular views inside to rails app, created a template api service