I ran into a fairly common routing error this morning, thankfully these are fairly easy to fix – usually!
Routing Error
No route matches [POST] “/orders/new”
No route matches [POST] “/orders/new”
Simply add the following the route to your routes.rb file:
siteconfigroutes.rb
#Orders
controller :orders do
post ‘orders/new’ => ‘orders#new’
end
You may also have to restart WEBrick for this new route to take affect. Good Luck!