Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Articles -form partial not rendering when named "-form.hbs". #24

Closed
ghost opened this issue May 4, 2016 · 0 comments
Closed

Articles -form partial not rendering when named "-form.hbs". #24

ghost opened this issue May 4, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented May 4, 2016

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 😄

@ghost ghost closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants