angular and rails sitting on a tree