@favoriteRoom=[]
@arFavoriteRoom.each do |item|
room=Room.find(item)
@favoriteRoom.push(room)
end
result=@favoriteRoom.where(params: value)
@arFavoriteRoom=cookies[:favorite_room]
if not @arFavoriteRoom.blank?
@arFavoriteRoom=@arFavoriteRoom.split('/')
else
@arFavoriteRoom=[]
end
favoriteRoom=Room.where(id: @arFavoriteRoom)
favorite_rooms_ids = cookies[:favorite_room]&.split('/')
favorite_rooms = Room.where(id: favorite_rooms_ids) if favorite_rooms_ids