Locals not passed to the erb partial template
<p>I have a simple Sinatra (v 1.4.6) app with a route calling:</p>

<pre><code>errors="My errors"
erb(:project_list, :locals =&gt; {:errors =&gt; errors})
</code></pre>

<p>Then in my <code>project_list.erb</code> partial file I try to process the variable <code>errors</code> </p>

<pre><code>&lt;% if errors %&gt;
  &lt;%= errors %&gt; - TRY AGAIN
&lt;% end %&gt;
</code></pre>

<p>but I am getting the following error:</p>

<blockquote>
  <p>undefined local variable or method `errors' for # Did you mean? error</p>
</blockquote>

<p>If I use <code>@errors</code> in the route and in the partial there is no problem.</p>

<p>Just to mention I am using:<code>mongo_mapper</code> and <code>sinatra/partial</code> gems</p>

<p>What am I doing wrong?</p>