Adds a like count feature to display the number of likes each cocktail receives.
• Displays the like count next to the like/unlike button on the cocktail index and view pages.
• Updates dynamically when a user likes or unlikes a cocktail.
Users can like or unlike a cocktail, with the count reflecting changes in real time.
Purpose
Adds a like count feature to display the number of likes each cocktail receives.
• Displays the like count next to the like/unlike button on the cocktail index and view pages. • Updates dynamically when a user likes or unlikes a cocktail.
Users can like or unlike a cocktail, with the count reflecting changes in real time.