Diego Polido
04/12/2022, 4:38 PM(0.7ms) SELECT "spree_properties"."name" FROM "spree_properties"
=> [
[ 0] "Body",
[ 1] "Acidity",
[ 2] "Sweetness",
[ 3] "Fruit Intensity",
[ 4] "Oak",
[ 5] "Tannin",
[ 6] "Spiciness",
[ 7] "Color Intensity",
[ 8] "Earth Notes",
[ 9] "Vintage",
[10] "Unit Type"
]
I would like, on the same search, to do something like Body=4 OR Acidity>4 OR Sweetness<=5 . The current searching engine is Ransack. Any thoughts how to do it?Diego Polido
04/14/2022, 6:05 PMif params[:property].present? && params[:value].present?
@collection = @collection.with_property_value(params[:property], params[:value])
endDiego Polido
04/14/2022, 6:05 PM