mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 19:53:05 +08:00
9 lines
264 B
Ruby
9 lines
264 B
Ruby
class TopicsController < ApplicationController
|
|
|
|
def index
|
|
return render_not_found("请输入正确的数据类型") unless params[:topic_type].present?
|
|
scope = Topic.with_single_type(params[:topic_type])
|
|
@topics = kaminari_paginate(scope)
|
|
end
|
|
|
|
end |