1
0

Added ingredient index and form

This commit is contained in:
cryptogopher
2019-09-13 14:48:43 +02:00
parent c916e7fd3c
commit c82f903360
9 changed files with 77 additions and 22 deletions

View File

@@ -1,6 +1,10 @@
class IngredientsController < ApplicationController
before_action :find_project_by_project_id, only: [:index, :create]
before_action :authorize
def index
@ingredient = Ingredient.new
@ingredients = @project.ingredients
end
def create