rails and angular sitting on a tree