这是我授权后获取用户基本信息的代码:
basic_info = request.env['omniauth.auth'].extra.raw_info
first = basic_info.first_name
last = basic_info.last_name
email = basic_info.email
id = basic_info.id
四个变量获取数据,所以它起作用了。
但是当我尝试basic_info.inspect
命令时,我得到:
“#”
这是为什么?它不应该转储所有值吗?