Fun Facts about Rails: nil.blank?
$ script/console
Loading development environment.
>> nil.blank?
=> true
>> ''.blank?
=> true
>> [].blank?
=> true
That’s useful, but I had either never read it, or had read it and forgotten it. Apparently I’m not the only one.
Theoretically Related Posts
Trackbacks
Use this link to trackback from your own site.
