Code Explainers
class ProductsController < ApplicationController def index @products = Product .includes(:category, :brand)