I see what you are doing here and I like the solution.  I had forgotten about the existence of respond_to?.