1
0

Adding/deleting nutrients on ingredient form working

This commit is contained in:
cryptogopher
2019-09-14 19:15:56 +02:00
parent dd8c4f2cd1
commit faef248449
3 changed files with 33 additions and 23 deletions

View File

@@ -4,7 +4,7 @@ class IngredientsController < ApplicationController
def index
@ingredient = Ingredient.new
@nutrient = Nutrient.new
@ingredient.nutrients.build
@ingredients = @project.ingredients
end