From ec2c50f7ec7a8c65329f7ad296d791174bb42fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 15 Jul 2024 21:39:38 +0800 Subject: [PATCH] Add tags filter for index. --- app/controllers/faqs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/faqs_controller.rb b/app/controllers/faqs_controller.rb index faf2bcc..03ab18e 100644 --- a/app/controllers/faqs_controller.rb +++ b/app/controllers/faqs_controller.rb @@ -1,6 +1,6 @@ class FaqsController < ApplicationController def index - faqs = Qa.can_display.order_by(:order_position => "asc").filter_by_categories + faqs = Qa.can_display.order_by(:order_position => "asc").filter_by_tags.filter_by_categories locale = I18n.locale.to_s f = faqs.collect do |qa| statuses = qa.statuses_with_classname.collect do |status|