class StateController < ApplicationController scaffold :state def list @states = State.find(:all, :include => :counties) end def edit @state = State.find(@params["id"]) @counties = County.find(:all) end end