class ThingsController < ApplicationController before_filter :load_thing, :except => :index def index # ... end def show # ... end # etc ... private def load_thing @thing = Thing.find(params[:id]) end end