You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing an issue related to the articles/form partial template. I'm on page 73 in the PDF (page 67 in the book). I have the two partials located at app/templates/articles/-form.hbs and app/templates/friends/-form.hbs.
When I navigate to /friends/show/:friend_id and click "Lend article", the app/templates/articles/new.hbs template tries to load a partial for app/templates/articles/-form.hbs
<h2> Lending new articles</h2>
{{partial"articles/form"}}
Unfortunately, nothing from the template is rendered. The content in articles/new.hbs does render, so I do see "Lending new articles" but I don't see anything from the partial template. However, if I rename app/templates/articles/-form.hbs to anything else, such as -form2.hbs, and update the partial helper call in articles/new.hbs to {{partial "articles/form2"}}, the content from the partial template does render.
Anyone have any suggestions as to why? I know I must be missing something simple.
Thanks in advance 😄
The text was updated successfully, but these errors were encountered:
Hello everyone,
I'm experiencing an issue related to the articles/form partial template. I'm on page 73 in the PDF (page 67 in the book). I have the two partials located at app/templates/articles/-form.hbs and app/templates/friends/-form.hbs.
When I navigate to /friends/show/:friend_id and click "Lend article", the app/templates/articles/new.hbs template tries to load a partial for app/templates/articles/-form.hbs
Unfortunately, nothing from the template is rendered. The content in articles/new.hbs does render, so I do see "Lending new articles" but I don't see anything from the partial template. However, if I rename app/templates/articles/-form.hbs to anything else, such as -form2.hbs, and update the partial helper call in articles/new.hbs to
{{partial "articles/form2"}}
, the content from the partial template does render.Anyone have any suggestions as to why? I know I must be missing something simple.
Thanks in advance 😄
The text was updated successfully, but these errors were encountered: