resolve template in resolver, not in AR model