OperationCode / operationcode_old_site

Our open source website. We're on a mission to help the military community learn software development, enter the tech industry, and code the future.
https://www.operationcode.org/
MIT License
230 stars 156 forks source link

zip code not found error when on joining page #779

Closed JayWeeeve closed 6 years ago

JayWeeeve commented 6 years ago

Attempted to join operationcode.org using https://www.operationcode.org/join. Receive the following error, "There was an error joining Operation Code: zip_code: not found ". I attempted to use various different zip codes. 11111, 23454, 90210, 06340 ect. I've replicated the issue on chrome, firefox, IE.

jjhampton commented 6 years ago

This should be opened in either the front-end or back-end repo.

May want to inspect this code in back-end repo: https://github.com/OperationCode/operationcode_backend/blob/31c5a8b76983ca1963e7ea6bf22ad810b948d719/app/models/user.rb

  def zip_code_exists
    return if longitude && latitude
    errors.add(:zip_code, 'not found')
  end
jjhampton commented 6 years ago

Closing, see backend issue referenced above.