Testing for empty columns

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.

figured it out. nvm.

i used “object.value.nil?”

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs