Articles -form partial not rendering when named "-form.hbs".
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
<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 :smile: