Is there a better way than the following to check to see if a string is nil OR has a length of 0 in Ruby?
if !my_str
If you are willing to require ActiveSupport you can just use the #blank? method, which is defined for both NilClass and String.
#blank?