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

前端 未结 0 371
小蘑菇
小蘑菇 2021-02-14 22:11

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         


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