title: Rails: Why does custom url change when `render 'new'` is called?
body: <p>I have a controller that controls a contact us form on a contact page. Inside the <code>routes.rb</code> file I have a line that says <code>match '/contact', :to =&gt; 'feedback#new'</code>. Now when the form is filled out correctly, everything works fine; the url is '/contact'. However, when the form isn't filled out correctly, my controller <code>renders 'new'</code> and the url changes from <code>'/contact'</code> to <code>'/feedback'</code>. Can someone tell me why this happens and how I can fix it so that if the validations are triggered and the page is rendered, the url will be <code>/contact</code> still and not <code>/feedback</code>? Thanks!</p>
  
  <p>My controller code:
  <img src="https://i.stack.imgur.com/GRVq1.png" alt="enter image description here"></p>