title: Nicest way to render different partials on a rails object?
body: <p>I have a list of videos which i show in different ways.
  If I was only displaying it in one way, I would simply write</p>
  
  <pre><code>&lt;% videos.each do |video| %&gt;
  &lt;%= render video %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>This loads my <code>_video.html.erb</code> partial, but sometimes I'd like to load a different partial, depending on my view. </p>
  
  <p>What's the most "Rails way" of having multiple views to render depending on the page it's being listed?</p>
  
  <p>So on my home page I can render <code>_video.html.erb</code>, but on another page I could render <code>_video_list.html.erb</code>. Right now I'm just calling the method</p>
  
  <pre><code>&lt;%= render 'videos/video_list' locals: video %&gt;
  </code></pre>
  
  <p>But I get the feeling there's a nicer way? I feel like it would be great if I could write </p>
  
  <pre><code>&lt;%= render video, 'list' %&gt;
  </code></pre>
  
  <p>Any suggestions?
  Thanks</p>