title: No route matches [PATCH] "/order.2"
body: <p>Have tried using similar questions on SO to fit to my specific case for the past hour or two but it hasn't been working.</p>
  
  <p>I am getting the following error when trying to edit and <code>order</code> but not when I am creating an <code>order</code> which is why I am confused because I use the same form partial for it which starts with <code>&lt;%=form_for(@order, :html =&gt; {class: "form-horizontal", role: "form"})do |f|%&gt;</code></p>
  
  <p>My <code>routes.rb</code> are:</p>
  
  <pre><code>get 'dashboard', to: 'order#index'
  get 'order', to: 'order#new'
  post 'order', to: 'order#create'
  get 'edit/:id', to: 'order#edit', as:'edit'
  post 'edit/:id', to: 'order#update'
  
  get 'accept/:id', to: 'order#accept', as: 'accept'
  get 'submit/:id', to: 'order#submit', as: 'submit'
  </code></pre>
  
  <p>I have no clue what's going on because I am used to <code>POST</code> and <code>GET</code> but not <code>PATCH</code> and i've tried researching my issue on my own but I cannot find any solutions.</p>
  
  <p><strong>ANSWER IS IN CHAT IN COMMENTS</strong></p>