LIKE 키워드와 where_properties 기능을 함께 사용하거나 비슷한 기능을 사용할 수 있습니까? 왜냐하면 내가 이런 식으로 쿼리를 작성해야하기 때문입니다.where_properties와 같은 키워드가 ahoy에서 함께 사용
Ahoy::Event.where(name: "$click").where_properties("'href' LIKE '%#{brochure.id}%'").count.size
LIKE 키워드와 where_properties 기능을 함께 사용하거나 비슷한 기능을 사용할 수 있습니까? 왜냐하면 내가 이런 식으로 쿼리를 작성해야하기 때문입니다.where_properties와 같은 키워드가 ahoy에서 함께 사용
Ahoy::Event.where(name: "$click").where_properties("'href' LIKE '%#{brochure.id}%'").count.size
안녕하세요, Emre : Ahoy :: Event.where (이름 : "$ click"). 여기에서 ('속성 ->'href '는'% # {brochure.id} '와 (와) 같이) – Anton
무엇을 속성의 열 유형입니까? 이것은''Ahoy :: Properties :: ClassMethods # where_properties'] (https://github.com/ankane/ahoy/blob/master/lib/ahoy)에서 분명히 드러나는'# where_properties'에 있어서는 매우 중요합니다. /properties.rb) – engineersmnky