Thanks for the reply. Yes the app calls for just one menu per client.
I see where you're going here. I think the logic below would complete
things.
Client.menu.dishes each do |dish|
price = ClientPrices.find_by_client_and_dish(@
client.id,
dish.id)
|| dish.default_price
end
Thanks for the advice and let me know if you see any improvements!