On Mon, Jul 9, 2012 at 4:23 PM, Michael Boutros
<[email protected]>wrote:
Geoff,
>
> But from the Rails documentation: An object is blank if it’s false,
> empty, or a whitespace string. For example, “”, “ ”, nil, [], and {} are
> all blank. That's why I think an array full of false, empty, or whitespace
> strings should be empty.
>
Why? [""] is not an empty array.
Maybe this description may help?
http://guides.rubyonrails.org/active_support_core_extensions.html#blank-and-present
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.