You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
collection do
Customer.order(name: :asc)
end
search do |q|
# puts "test" # when adding debugging statements this doesn't seem to be called
collection.where("name LIKE ?", "%#{q}%")
end
while this is actually doing the filter (if manually adding the q param)
collection do
Customer.order(name: :asc).where("name LIKE ?", "%#{params[:q]}%")
end
the infrastructure recognises the presence of the search block as a search input is shown. but i've added some debugging statement in the search block and it doesn't seem to be called ?
The text was updated successfully, but these errors were encountered:
this is not working (nothing filtered)
while this is actually doing the filter (if manually adding the q param)
the infrastructure recognises the presence of the search block as a search input is shown. but i've added some debugging statement in the search block and it doesn't seem to be called ?
The text was updated successfully, but these errors were encountered: