title: POST / GET not working correctly with Ruby on Rails Root
body: <p>Im using RoR to write my website and i've run into this issue with routes.</p>
  
  <p>My routes file looks as such</p>
  
  <pre><code>  root to: "static#index"
  
    match '/index', to: 'static#index', via: [:get, :post]
    match '/download', to: 'static#download', via: [:get, :post]
    match '/terms', to: 'static#terms', via: 'get'
    match '/privacy', to: 'static#privacy', via: 'get'
    match '/jobs', to: 'static#jobs', via: 'get'
    match '/android', to: 'static#android', via: [:get, :post]
    match '/apply', to: 'static#apply', via: 'get'
    match '/faq', to: 'static#faq', via: 'get'
  </code></pre>
  
  <p>When I preform a GET request to <a href="https://www.website.com/" rel="nofollow">https://www.website.com/</a> the page gets displayed.</p>
  
  <p>However when I preform a POST request to the same address it returns a 404 page not found.</p>
  
  <p>I do not have a index.html in my public directory.</p>
  
  <p>So why is this POST request returning a 404 when it is matched to both GET and POST and the GET works correctly?</p>
  
  <p>EDIT</p>
  
  <p>i've added this line </p>
  
  <pre><code>match '/', to: 'static#index', via: [:get, :post] 
  </code></pre>
  
  <p>just below my root to declaration, however now my page shows a 422 error instead of a 404 </p>