Issues of Control Flow logic in Respond To Blocks
The following code was written by my boss to simulate an issue arising with a production app that I've been working on at work. class RacersController < ApplicationController def race @racer = Racer.first @was_in_if_block, @was_outside_if_block = false, false respond_to do |format| if @racer.name == 'john'