sillyforum/app/controllers/forum_threads_controller.rb

15 lines
323 B
Ruby
Raw Permalink Normal View History

2026-03-17 12:49:38 +00:00
class ForumThreadsController < ApplicationController
def index
2026-03-18 01:09:39 +00:00
end
2026-03-17 12:49:38 +00:00
def show
@category = Category.find(params[:category_id])
@forum_topic = @category.forum_topics.find(params[:forum_topic_id])
2026-03-18 01:09:39 +00:00
@forum_thread = @forum_topic.forum_threads.find(params[:id])
@forum_thread.replies = Reply.all
2026-03-17 12:49:38 +00:00
end
end