Rendering templates with nested routes - path helpers

Hi,
is there anyone who can help me?
Plese find below the link to the gist
https://gist.github.com/palmo25/38e2c82b71e9eebfd768dd4f808b8fb5"

Where is the mistake?
Thanks

Hi @palmo25 can you elaborate on what you’re trying to do here?

Hello, the link points to a js file, almost unreadable…

UPDATE: I updated OP, and removed js extension as spotted in the next post

This is the gist file (I just removed the .js part)

Looking at your error message, it seems you are accessing the wrong route. It should be /projects/1/budgets/1 to access a budget and not just /projects/1.

1 Like

Thank you guys. I’ve found the problem. It was in the project controller. The budget variable was missing. I’ve updated the gist. Thanks