title: Passing @object into a rails partial render
body: <p>I have a partial:</p>
  
  <p>'profiles/_show.html.erb'</p>
  
  <p>that contains code like</p>
  
  <pre><code>&lt;%= @profile.fullname %&gt;
  </code></pre>
  
  <p>I'm trying to render the partial but I'm not sure how to pass the @profile. I tried using local but apparently it sets 'profile' on my partial instead of '@profile'.</p>
  
  <pre><code>&lt;%= render :partial =&gt; 'profiles/show', :locals =&gt; {:profile =&gt; @app.profile} %&gt;
  </code></pre>
  
  <p>Is there anyway to pass it as @object instead of object, or is it designed this way?</p>