Rendering templates with nested routes - path helpers

is there anyone who can help me?
Plese find below the link to the gist"

Where is the mistake?

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