# Partial rendering results in a blank page?

**URL:** <https://www.ruby-forum.com/t/partial-rendering-results-in-a-blank-page/164948>\
**Category:** Rails\
**Created:** [April 7, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/partial-rendering-results-in-a-blank-page/164948 "2009-04-07T18:08:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![niczm25](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ce73a5/32.png) [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Post date:** [April 7, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/partial-rendering-results-in-a-blank-page/164948/1 "2009-04-07T18:08:38Z")

</div>

I’m stuck with a bug at the moment which is puzzling me. I have a  
layout containing some HTML and a partial (for the navigation) - there  
is nothing else there other than the yield.

1. If the nav is included as a partial I get nothing returned to the  
browser at all (blank page) but everything else appears normal
2. If I remove the partial the page works fine
3. If I put the nav code directly in the template it works fine
4. if I replace the nav code in the partial with a simple string, I get  
a blank page again.

Does anyone have any ideas as to what the problem could be, or know how  
I might debug it?

---

<div class="post-metadata">

**Author:** ![niczm25](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ce73a5/32.png) [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Post date:** [April 7, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/partial-rendering-results-in-a-blank-page/164948/2 "2009-04-07T18:27:41Z")

</div>

Neil M. wrote:

> I’m stuck with a bug at the moment which is puzzling me. I have a  
> layout containing some HTML and a partial (for the navigation) - there  
> is nothing else there other than the yield.
> 
> 1. If the nav is included as a partial I get nothing returned to the  
> browser at all (blank page) but everything else appears normal
> 2. If I remove the partial the page works fine
> 3. If I put the nav code directly in the template it works fine
> 4. if I replace the nav code in the partial with a simple string, I get  
> a blank page again.
> 
> Does anyone have any ideas as to what the problem could be, or know how  
> I might debug it?

Found the issue, the partial was in the layouts folder, instead of the  
relevant controller views folder.

However, Rails was throwing a ActionView::MissingTemplate Exception  
which was only visible via the debugger which is probably a bug.
