title: Rails plain text template
body: <p>I'd like to render an ERB template into plain text in Rails. Ideally, I'd be able to do something like this:</p>
  
  <p><strong>app/views/test/test.txt.erb</strong></p>
  
  <pre><code>Test
  &lt;%= @test %&gt;
  </code></pre>
  
  <p>When I tried, Rails complained with the following error:</p>
  
  <pre><code>ActionView::MissingTemplate (Missing template test/test, application/test with {:locale=&gt;[:en], :formats=&gt;[:html], :variants=&gt;[], :handlers=&gt;[:erb, :builder, :raw, :ruby, :coffee]}. Searched in:
    * "/Users/landonschropp/Development/test/app/views"
  ):
  </code></pre>