我有以下关联:
Restaurant has_many Menus
Menu belongs_to Restaurant
Restaurant belongs_to City
City has_many Restaurants
执行以下查询时:
Menu.includes(:restaurant).where("restaurants.city_id", 3)
我收到以下错误:
ActiveRecord::StatementInvalid: PG::Error: ERROR: argument of WHERE must be type boolean, not type integer
我在这里做错了什么?