title: How to pass options with render partials
body: <p>Is there a way to pass options with render partials? Or maybe I need to set some locals and check against them? I'm confused. I'm looking for something like this:</p>
  
  <p><strong>views/articles/_post.html.erb</strong></p>
  
  <pre><code>&lt;%= render partial: "shared/info" %&gt;
  &lt;%#= SILLY GUESS: render partial: "shared/info", locals: { from_articles: true } %&gt;
  </code></pre>
  
  <p><strong>views/stories/_post.html.erb</strong></p>
  
  <pre><code>&lt;%= render partial: "shared/info" %&gt;
  &lt;%#= SILLY GUESS: render partial: "shared/info", locals: { from_stories: true } %&gt;
  </code></pre>
  
  <p>How do I do something like this?</p>
  
  <p><strong>views/shared/_info.html.erb</strong></p>
  
  <pre><code>&lt;% if called from views/articles/_post.html.erb %&gt;
    &lt;p&gt;Foo&lt;/p&gt;
  &lt;% elsif called from views/stories/_post.html.erb %&gt;
    &lt;p&gt;Bar&lt;/p&gt;
  &lt;% end %&gt;
  </code></pre>