class ForumTopicsController < ApplicationController def show id = params.extract_value(:id) @thread = ForumThread.find_by_id(id) end def index @threads = ForumThread.all end def show id = params.extract_value(:id) @forum_topics = ForumTopic.find_by_id(id) @threads = ForumThread.all @thread = ForumThread.find_by_id(id) end end