title: ActionView::TemplateError (Missing template) In ruby on rails
body: <p>I am running a RoR application (rails 2.3.8, ruby 1.8.7), the application runs fine on my local machine. but on production the logs show the following error:</p>
  
  <pre><code>ActionView::TemplateError (Missing template folder/_file_name.erb in view path app/views) on line #19 of app/views/layouts/main.rhtml:
  19:     &lt;%= render :partial =&gt; "folder/file_name" -%&gt;
  </code></pre>
  
  <p>the file name exists as <code>folder/_file_name.html.erb</code>, I tried to reproduce the problem on the production environment but didnt have any luck, for some reason rails application asks for <code>folder/_file_name.erb</code> at some times while other times it searches for the right file <code>folder/_file_name.html.erb</code>. </p>
  
  <p><em>Could someone explain to me what is going on?</em></p>
  
  <p>The same also occurs for .rhtml files, rails application requests .erb at times while others get the right .rhtml file</p>
  
  <p><strong>update:</strong></p>
  
  <pre><code>&lt;%= render :partial =&gt; "shared/meta_tags" -%&gt;
  &lt;%= render :partial =&gt; "shared/common_resources" -%&gt;
  &lt;%= render :partial =&gt; 'shared/ads/oas' -%&gt;
  </code></pre>
  
  <p>Any pointers on this issue will be helpful,
  thanks in advance</p>