I find myself repeatedly looking for a clear definition of the differences of nil?, blank?, and empty? in Ruby on Rails. Here\'s the
nil?
blank?
empty?
Quick tip: !obj.blank? == obj.present?
!obj.blank? == obj.present?
Can be handy/easier on the eyes in some expressions