14 lines
323 B
Ruby
14 lines
323 B
Ruby
class ForumThreadsController < ApplicationController
|
|
def index
|
|
end
|
|
|
|
def show
|
|
@category = Category.find(params[:category_id])
|
|
|
|
@forum_topic = @category.forum_topics.find(params[:forum_topic_id])
|
|
|
|
@forum_thread = @forum_topic.forum_threads.find(params[:id])
|
|
@forum_thread.replies = Reply.all
|
|
|
|
end
|
|
end
|