Topic: .empty? vs .blank? for strings (answered)
Is there a difference between these two to check if a string is empty -
I'm tempted to use ''.empty? since it works both in ruby and therefore in rails whereas ''.blank? seems to only work in rails. Any idea why the ''.blank? method was introduced to rails and if I should be using that instead?
Last edited by sthapit (2008-04-17 21:11:07)