diff options
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/config/routes.rb b/config/routes.rb index 1b24155..1dd57b5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,18 +2,17 @@ Rails.application.routes.draw do root "dashboard#index" get "ferti_recipe", to: "recipes#show" - resources :fertilizer_products - resources :raft_crops, only: [ :update ] - resources :rafts, only: [ :index ] do + + resources :beds, only: [ :index, :edit, :update ] do collection do - get :editor # rafts/editor - patch :assign_all # bulk assign all rafts - patch :assign_bed # bulk assign per bed - end - member do - patch :assign_one # per raft + patch :bulk_assign_crops + post :reset_seed_crops end + + resources :rafts, only: [ :index, :edit, :update ], shallow: true end + + resources :fertilizer_products resources :crops resources :nutrient_measurements |