How to catch an “undefined method `[]' for nil:NilClass” error?

前端 未结 0 1056
眼角桃花
眼角桃花 2021-02-14 21:34

I get an nested array from facebook via omniauth and wanna check if it\'s empty?/nil?/exists? the depending line looks like:

 unless omniauth[\'extra\'][\'raw_in         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题