rake aborted!
SyntaxError: /osehra/popHealth/app/controllers/api/providers_controller.rb:163: syntax error, unexpected ':', expecting =>
query={"addresses" => {"$elemMatch" => {"$or":[
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:164: syntax error, unexpected ':', expecting =>
{"city":/#{x}/i},
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:164: syntax error, unexpected '}', expecting keyword_end
{"city":/#{x}/i},
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:165: syntax error, unexpected ':', expecting =>
{"street":/#{x}/i},
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:165: syntax error, unexpected '}', expecting keyword_end
{"street":/#{x}/i},
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:166: syntax error, unexpected ':', expecting =>
{"state":/#{x}/i},
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:166: syntax error, unexpected '}', expecting keyword_end
{"state":/#{x}/i},
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:167: syntax error, unexpected ':', expecting =>
{"zip":/#{x}/i},
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:167: syntax error, unexpected '}', expecting keyword_end
{"zip":/#{x}/i},
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:168: syntax error, unexpected ':', expecting =>
{"country":/#{x}/i}
^
/osehra/popHealth/app/controllers/api/providers_controller.rb:168: syntax error, unexpected '}', expecting keyword_end
/osehra/popHealth/config/environment.rb:5:in `<top (required)>'
/osehra/popHealth/lib/tasks/admin.rake:1:in `<top (required)>'
/osehra/popHealth/Rakefile:15:in `<top (required)>'
(See full trace by running task with --trace)
Side Note: I signed up for a NLM account like this step said but I don't understand where this fits into this step. Also from the nih page I didn't see a place for NLM VSAC Services. Is there an environment variable that I need to set so that the app can connect to the NLM VSAC API?