title: Creating custom view similar to index.html.erb
body: <p>I'm creating a custom view that is a slight modification of the <code>index.html.erb</code>. I'd like to be able to create a link on my web app that directs a user to this custom view called <code>list.html.erb</code>.</p>
  
  <p>Here's what I've done:</p>
  
  <p>1) Copied the default scaffold index view and renamed it to <code>list.html.erb</code><br/>
  2) Modified <code>GalleriesController</code> by copying the <code>index</code> method and renaming to <code>list</code>:</p>
  
  <pre><code>def list
   @galleries = Gallery.all
  
   respond_to do |format|
     format.html # index.html.erb
     format.xml  { render :xml =&gt; @galleries }
   end
  end 
  </code></pre>
  
  <p>3) Modified <code>routes.rb</code> file like so:</p>
  
  <pre><code>match "galleries/list" =&gt; "galleries#list"
  </code></pre>
  
  <p>I keep getting the following error:</p>
  
  <pre><code>Couldn't find Gallery with ID=list
  Rails.root: /Users/scervera/Sites/MDN
  
  Application Trace | Framework Trace | Full Trace
  app/controllers/galleries_controller.rb:28:in `show'
  </code></pre>
  
  <p>In my search on stackoverflow I was unable to find any similar questions.</p>