Added ingredient index and form
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user