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?
A special case is when trying to assess if a boolean value is nil:
false.present? == false false.blank? == true false.nil? == false
In this case the recommendation would be to use .nil?
.nil?