1
0

Moved adjust from IngredientsController to MealsController

This commit is contained in:
cryptogopher
2020-05-02 16:49:54 +02:00
parent 4397249fa9
commit b3f7199f93
6 changed files with 23 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ resources :projects, shallow: true do
end
end
resources :ingredients, only: [] do
post 'adjust/:adjustment', to: 'ingredients#adjust', as: :adjust, on: :member
post 'adjust/:adjustment', to: 'meals#adjust', as: :adjust, on: :member
end
resources :meals, only: [:index, :new, :create, :edit, :update, :destroy] do
member do