title: POST Routing Issue for Custom Form
body: <p>I have added a custom route, custom controller code, and actioned the custom route in the form, but I get an error regarding the route, even as it shows the route in error message. </p>
  
  <p>The form/view is as follows:
      views/survey_request/confirmation.html.erb</p>
  
  <pre><code>&lt;%= form_for @survey_request, url: survey_requests_confirm_path do |f| %&gt;
    &lt;p&gt;Your Email Address: &lt;%= f.text_field :customer_email %&gt;&lt;/p&gt;
    &lt;%= f.hidden_field :survey_token, value: @survey_request.survey_token %&gt;
    &lt;p&gt;Your survey token: &lt;%= @survey_request.survey_token %&gt;&lt;/p&gt;
    &lt;p&gt;&lt;%= f.submit %&gt;&lt;/p&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>My relevant routes in the routes.rb file are as follows:</p>
  
  <pre><code>get 'survey/:id', to: 'survey_requests#confirmation'
  put 'survey_requests/confirmation', to: 'survey_requests#confirmation'
  put 'survey_requests/confirm', to: 'survey_requests#confirm'
  </code></pre>
  
  <p>In the survey_requests_controller.rb I have a method defined</p>
  
  <pre><code>def confirm
    #code here to confirm the users email and token
  end
  </code></pre>
  
  <p>When I run the app, the confirmation.html.erb form shows up fine, to include the token passed to it. When I submit the form I get the following error:</p>
  
  <pre><code>No route matches [POST] "/survey_requests/confirm"
  </code></pre>
  
  <p>However when I scroll down on the same error page, it shows the route:</p>
  
  <pre><code>survey_requests_confirm_path    PUT /survey_requests/confirm(.:format)  survey_requests#confirm
  </code></pre>
  
  <p>Any suggestions? Thanks!</p>