Add tags filter for index.

This commit is contained in:
邱博亞 2024-07-15 21:39:38 +08:00
parent f8a505911d
commit ec2c50f7ec
1 changed files with 1 additions and 1 deletions

View File

@ -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|