# Template not rendering correctly in 1.10+

**URL:** <https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359>\
**Category:** Uncategorized\
**Created:** [February 19, 2015, 5:27pm UTC](https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359 "2015-02-19T17:27:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![adriaaaaan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/adriaaaaan/32/15254_2.png) [@adriaaaaan](https://discuss.emberjs.com/u/adriaaaaan)\
**Post date:** [February 19, 2015, 5:27pm UTC](https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359/1 "2015-02-19T17:27:44Z")

</div>

I’ve got a template which isnt rendering correctly, seemingly go no reason (I have the exact same set up in hundreds of places this is the only one that doesnt work).

heres the template `{{#if model}} yes {{else}} no {{/if}} help?`

but all thats rendered is the word “help?”. I have no idea whats going on ember inspect shows the correct view class and controller class pointing to the correct templates. even {{this}} returns nothing. Before logging a bug I’m wondering if anyone can give me tips on how to debug? thanks

---

<div class="post-metadata">

**Author:** ![jthoburn](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jthoburn/32/12401_2.png) [@jthoburn](https://discuss.emberjs.com/u/jthoburn)\
**Post date:** [February 19, 2015, 5:30pm UTC](https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359/2 "2015-02-19T17:30:16Z")

</div>

throw in {{log model}} and see what model is at that point?

---

<div class="post-metadata">

**Author:** ![jasonmit](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jasonmit/32/182_2.png) [@jasonmit](https://discuss.emberjs.com/u/jasonmit)\
**Post date:** [February 19, 2015, 5:34pm UTC](https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359/3 "2015-02-19T17:34:22Z")

</div>

Perhaps a dumb question, but are you sure that template is being used for that view? Does just tossing in a string literal appear in the DOM? Are you able to replicate this with a jsbin?

---

<div class="post-metadata">

**Author:** ![adriaaaaan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/adriaaaaan/32/15254_2.png) [@adriaaaaan](https://discuss.emberjs.com/u/adriaaaaan)\
**Post date:** [February 19, 2015, 5:35pm UTC](https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359/4 "2015-02-19T17:35:41Z")

</div>

yes, hence why only “help?” is printed, nothing inside the if statement appears however

---

<div class="post-metadata">

**Author:** ![adriaaaaan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/adriaaaaan/32/15254_2.png) [@adriaaaaan](https://discuss.emberjs.com/u/adriaaaaan)\
**Post date:** [February 19, 2015, 5:37pm UTC](https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359/5 "2015-02-19T17:37:26Z")

</div>

I think I might have a candidate, im seeing en error trying to access this.$() from the view class. Even though the state of the view is “inserted” and the state is “inDOM” it is apparently in the dom and its throwing an exception. This also seems to be a regression I’ll comment that part out and see if it helps

---

<div class="post-metadata">

**Author:** ![adriaaaaan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/adriaaaaan/32/15254_2.png) [@adriaaaaan](https://discuss.emberjs.com/u/adriaaaaan)\
**Post date:** [February 19, 2015, 5:39pm UTC](https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359/6 "2015-02-19T17:39:31Z")

</div>

forget that, its still broken

---

<div class="post-metadata">

**Author:** ![jasonmit](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jasonmit/32/182_2.png) [@jasonmit](https://discuss.emberjs.com/u/jasonmit)\
**Post date:** [February 19, 2015, 5:43pm UTC](https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359/7 "2015-02-19T17:43:27Z")

</div>

Try and isolate it with a jsbin, would be helpful in helping to get this fixed – even if this turns out to be a bug in Ember.

> **[JS Bin](http://jsbin.com/vavumexoqe/1/edit?html,js,output)**
>
> A live pastebin for HTML, CSS & JavaScript and a range of processors, including SCSS, CoffeeScript, Jade and more...

---

<div class="post-metadata">

**Author:** ![adriaaaaan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/adriaaaaan/32/15254_2.png) [@adriaaaaan](https://discuss.emberjs.com/u/adriaaaaan)\
**Post date:** [February 19, 2015, 5:52pm UTC](https://discuss.emberjs.com/t/template-not-rendering-correctly-in-1-10/7359/8 "2015-02-19T17:52:38Z")

</div>

I seem to have fixed it anyway, I had some legacy code for backwards compatibility which I can now get rid of.

thanks anyway! I appreciate the quick replies (i’ll close this now)
