I have this code:
href="{{ path('new') }}"
Now is necessary use one variable in this section:
href="{{ path(item.ruta) }}"
But this show a error:
An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "" as such route does not exist.").
How can solution this problem?