我想检查 的值,env[:clearance]
看看为什么有些东西坏了。
我怎样才能做到这一点。我试过puts
:
config.user.current = Proc.new { env[:clearance].current_user }
puts "ENV[:CLEARANCE]: #{env[:clearance]}"
但这会得到:undefined local variable or method
env' for main:Object (NameError)`
在这种情况下,我如何才能了解env
散列?顺便说一句,这与Clearance gem松散相关。