Skip to content

Instantly share code, notes, and snippets.

@bankair
Created July 9, 2020 13:36
Show Gist options
  • Save bankair/750c242a47940eac1d842a2bb71138dc to your computer and use it in GitHub Desktop.
Save bankair/750c242a47940eac1d842a2bb71138dc to your computer and use it in GitHub Desktop.
class RecipesController < ApplicationController
# GET /recipes
def index
@recipes = Recipe.all.includes(:ingredients)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment