Why does rails use @poop object instance variables instead of just a local poop variable in the generated code? Is there some foreseen common situation where it's useful rather than simply using a local variable here? I would think it makes sense to use a local variable and not attach something to the object namespace unless you need it there.
# GET /poop/1
# GET /poop/1.xml
def show
@poop = Poop.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @poop }
end
end