show_thing
edit_thing
def show_thing @thing = Thing.find(params[:id]) # select 1 end def edit @thing = Thing.find(params[:thing][:id]) # select 2 @thing.attributes = params[:thing] if @thing.save # update … else … end end