title: passing values to partial in rails 3
body: <p>Here is how I pass the values/variable to the partial:</p>
  
  <pre><code>&lt;%= render "partials/banner", :locals =&gt; {:text_1 =&gt; t(:"main.home.banner_text_1"),
                                            :text_2 =&gt; t(:"main.home.banner_text_2") } %&gt;
  </code></pre>
  
  <p>then in the partial:</p>
  
  <pre><code> &lt;%= text_1 %&gt; &lt;%= text_2 %&gt;
  </code></pre>
  
  <p>but getting "undefined local variable or method text_1"</p>
  
  <p>Where should I set the variable so it could be accesible from all views and layouts in my app?</p>
  
  <p>Thanks! </p>