title: Button to change the rendered partial
body: <p>Ruby on Rails 3. I have a page with several div blocks. I am trying to seperate them into two pages. I want a button at the bottom of the page which will change the rendered partial.</p>
  
  <p>The "render 'news'" is the first partial loaded. I want the "Archived News Postings" button to change the 'news' to 'archive_news'</p>
  
  <pre><code>&lt;%= render 'news' %&gt;
  &lt;%= link_to render(:partial =&gt; 'archive_news'), :class =&gt; 'btn' %&gt;&amp;nbsp;&amp;nbsp;&lt;button type="button" class="archive"&gt;Archived News Postings&lt;/button&gt;
  </code></pre>
  
  <p>Can I get a pointer? Thank you</p>