fixed show/hide product at menu

This commit is contained in:
NyanLinHtut
2020-03-04 12:18:01 +06:30
parent 4dcb115e0a
commit c245cee4d0
2 changed files with 2 additions and 3 deletions

View File

@@ -7,8 +7,7 @@ class Foodcourt::FoodCourtController < ApplicationController
end
end
def index
@product = Product.all
def index
if params[:sale_id].present?
sale =Sale.find(params[:sale_id])
if sale