I have a favorites table in my DB that has a user_id and restaurant_id
In my restaurant controller I have a user ID and need to get all the
restaurants that the user has marked as favorites. I would like to do
something similiar to:
@results = Favorite.find_all_by_user_id(current_user.id)
This however returns a list of “favorites” not “restaurants”. What is
the best way to get the list of restaurants?