Your controller name is OrderController
(singular) and the error is complaining it cannot find OrdersController
(plural). You also specified resources :orders
in your routes (plural) which must match the controller name.
Rename your controller to OrdersController
; this follows the Rails convention of plural controller names.