Rails Not able to access headers after moving to Digital Ocean
问题 I have a rails app that serves the web and an Android client. I recently upgraded to Ruby 2.0 from 1.9.3. I went to do some work on the Android client and kept getting status 500 from the API. I return JSON data for each user by sending their auth_token in the headers. I checked the server logs to see what was up. This method was returning nil: def api_user my_auth = request.headers["auth_token"] api_user = User.where(authentication_token: my_auth).first end I hadn't touched my Android client