On Thu, Jul 15, 2010 at 7:45 AM, Michael Nissim <info / israelunique.com> wrote:

> I personally find this confusing:
>
>>> a[:real]=false
>>> a[:real]  => false
>>> a[:real].blank?  => true  ??
>
> if I populated a[:real] with false, why does '.blank?' return true?
> That's confusing. But hey, if you can't win them, join them. I love Ruby
> and Rails!

It should work

   $ script/console
   Loading development environment (Rails 2.3.2)
   >> a = {}
   => {}
   >> a[:real] = false
   => false
   >> a[:real].blank?
   => true

false is blank?, no matter where it is stored.