Rails integration for dynatree