S
Sijo Kg
Hi
Could you please tell me when to use .nil? , .empty?, .blank? .What
are the difference between them.. For example I have
params[:company][:whichCompany]
And to check for it is null I first attempted all these and finally the
following worked
if !params[:company][:whichCompany].empty?
So now really i am confused .Please tell me the differnce
Thanks in advance
Sijo
Could you please tell me when to use .nil? , .empty?, .blank? .What
are the difference between them.. For example I have
params[:company][:whichCompany]
And to check for it is null I first attempted all these and finally the
following worked
if !params[:company][:whichCompany].empty?
So now really i am confused .Please tell me the differnce
Thanks in advance
Sijo