from rails console:
development environment (Rails 3.2.9) 1.9.2p320 :001 > defined?(kol) => nil 1.9.2p320 :002 > if 1==2 1.9.2p320 :003?> kol = 'mess' 1.9.2p320 :004?> end => nil 1.9.2p320 :005 > defined?(kol) => "local-variable" 1.9.2p320 :006 > kol => nil
my question is: why does the kol variable get an instance on nil , although the condition (1 == 2) fails?
Railingin dfw
source share