Passing variable to partial
<p>I want to render a partial for each offer.
I have the following code:</p>

<p>offers/index.html.haml:</p>

<pre><code>- @offers.each do |o|
  = render 'offershort', locals: {offer: o}
</code></pre>

<p>offers/_offershort.html.haml:</p>

<pre><code>= link_to offer.name, offer_path
= offer.description
</code></pre>

<p>I get an error:</p>

<blockquote>
  <p>undefined local variable or method `offer'</p>
</blockquote>

<p>How to do it properly?</p>