Refactor redirect_to to respond_with