From 9607fcb5a9cdc7595633336881cc0dd8aa9fb8ca Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 14 Apr 2023 20:52:50 -0600 Subject: Corrige errores de OrdersController --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index af97ac4..bc38e3f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -21,6 +21,7 @@ Rails.application.routes.draw do put '/account/cards/:id', to: 'cards#update' delete '/account/cards/:id', to: 'cards#destroy' put '/account', to: 'user_accounts#update' + resources :orders, only: %i[index show create] resources :companies, only: %i[index show create update] resources :products, only: %i[index show create update destroy] resources :products do -- cgit v1.2.3