I was surprised to see this redirect worked:
# FYI Project has_many Tasks, and Task belongs_to Project
# Task controller
@task = Task.find(params[:id])
flash[:notice] = "Successfully destroyed task."
I assume that clean up doesn't happen until after destroy. Seems that
'project' should be cached before @task.destroy or is it actually safe
to use this way? I'd think this might be one of those places where
production might behave differently from development and test.