title: <%=yield%> not working in named templates
body: <p>&lt;%=yield%> works perfectly if my template is called layouts/application.erb. However, if I change the template to something else, then the yield doesn't work. For instance, my controller method is</p>
  
  <pre><code>render :template=&gt;'layouts/survey'
  </code></pre>
  
  <p>and the right template gets rendered, <strong>but its yield method doesn't show the output of the current action's view. What simple thing am I missing?</strong> I have also tried</p>
  
  <pre><code>render :action=&gt;"index", :template=&gt;"layouts/survey"
  </code></pre>
  
  <p>to no avail. </p>