Testing for empty columns


#1

i almost feel dumb for even asking this one, but i can’t seem to figure
it out.

i just need to test for an empty variable. i’ve tried:

<% if object.value
do_something_here
end %>

but it always evaluates to true, even if the variable is empty.


#2

figured it out. nvm.

i used “object.value.nil?”