title: Rails 3: "undefined local variable or method" if I put content in a partial
body: <p>I have the following table</p>
  
  <pre><code>&lt;table id="rating"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th colspan="2"&gt;Photo Ratings&lt;/th&gt;
          &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Average Rating&lt;/td&gt;
          &lt;td&gt;&lt;%= msg.average_rating %&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Your Rating&lt;/td&gt;
          &lt;td&gt;&lt;%= current_user_rating %&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Which works fine if I have it in a view, but when I put it in a partial <code>_rating.html.erb</code> I get </p>
  
  <p><code>undefined local variable or method 'msg' for #&lt;#&lt;Class:0x000003463da1570&gt;:0x003463d9f388&gt;</code></p>
  
  <p>I am linking to the partial via <code>&lt;%= render :partial =&gt; "rating" %&gt;</code>, what must I add to the partial link so that I dont get the error? Thanks</p>