1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/app/controllers/ingredients_controller.rb
2019-09-13 19:21:28 +02:00

17 lines
314 B
Ruby

class IngredientsController < ApplicationController
before_action :find_project_by_project_id, only: [:index, :create]
before_action :authorize
def index
@ingredient = Ingredient.new
@nutrient = Nutrient.new
@ingredients = @project.ingredients
end
def create
end
def destroy
end
end