app/controllers/veterans_controller.rb
def connect_sign_up
    @veteran = Veteran.find(params[:id])
    if @veteran.update(veteran_connect_signup_params)
      render json: @veteran
    else
      render json: @veteran.errors, status: :unprocessable_entity
    end
  end
# PATCH/PUT /veterans/1/connect_sign_up
# Used solely for veterans signing up for Connect
PATCH/PUT /veterans/1/connect_sign_up
Used solely for veterans signing up for Connect
PATCH / PUT / veterans / 1 / connect_sign_up Used solely for veterans signing up for Connect
def connect_sign_up
    @veteran = Veteran.find(params[:id])
    if @veteran.update(veteran_connect_signup_params)
      render json: @veteran
    else
      render json: @veteran.errors, status: :unprocessable_entity
    end
  end
def connect_sign_up @veteran = Veteran . find ( params [ :id ] ) if @veteran . update ( veteran_connect_signup_params ) render json : @veteran else render json : @veteran . errors , status : :unprocessable_entity end end
PATCH/PUT /veterans/1/connect_sign_up
Used solely for veterans signing up for Connect
PATCH / PUT / veterans / 1 / connect_sign_up Used solely for veterans signing up for Connect