How to use .nil? .empty? .blank? .present? in Rails 6
Updated May 2020
Ruby methods can seem pretty daunting to a new programmer and knowing when to use which one can feel like a giant black hole. In this guide, I wanted to put together a quick cheatsheet for using some of the most common methods in Ruby and Rails —
.nil? .empty? .blank? and .present?