title: Change Instance Variable Based on Controller Name - RoR
body: <p>I am looking to make things DRY with the following partial:</p>
  
  <pre><code>&lt;div class="controls &lt;%= 'hide' if @videos.total_pages == 1 and !administrator? %&gt;"&gt;
    &lt;% if administrator? %&gt;
      &lt;%= link_to "New #{controller_name.capitalize.singularize}", new_video_path, {:style =&gt; "margin-right: 10px;"} %&gt;
    &lt;% end %&gt;
    &lt;%= will_paginate @videos, :class =&gt; "pagination", :inner_window =&gt; 1 %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>As you can see there is @videos appearing twice. Can I change these based solely on the controller name, similar to the link_to?</p>