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