title: How do I create a rails controller action?
body: <p>My rails app has a single CustomerSelectionController, with two actions:</p>
  
  <p>index: which shows a form where the user can enter customer information and
  select: which just displays a static page.</p>
  
  <pre><code>class CustomerSelectionController &lt; ApplicationController
    def index
    end
  
    def select
    end
  end
  </code></pre>
  
  <p>I've created an entry in my routes.rb file:</p>
  
  <pre><code>  resources :customer_selection
  </code></pre>
  
  <p>and the form in the index view looks like:</p>
  
  <pre><code>&lt;h1&gt;Customer Selection&lt;/h1&gt;
  
  &lt;%= form_tag("customer_selection/select", :method =&gt; "get") do %&gt;
    &lt;%= submit_tag("Select") %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>however when I click on the Select button in the browser, all I get is:</p>
  
  <p>Unknown action</p>
  
  <p>The action 'show' could not be found for CustomerSelectionController</p>
  
  <p>I'm not sure why it is trying to perform an action called show? I haven't defined or referenced one anywhere.</p>