First, hats off to rails and the community. I’m definitely a convert.
Question: I’m constantly outputting information like so:
<% unless item.empty? %>
Item: <%= item %>
<% end %>
But I’m finding that depending on where item is pulled from, the item
either be empty (ie form), or null (ie db). Short of always checking
nil first then empty, what’s the easiest way to just use empty and have
stop throwing errors if it’s called on a null object?