16 lines
285 B
Ruby
16 lines
285 B
Ruby
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
|
|
end
|
|
|
|
def destroy
|
|
end
|
|
end
|