This is one of those things, that maybe so simple I\'ll never find it because everyone else already knows it.
I\'ve got objects I have to check for nil in my views s
You could write a helper method which looks like this:
def print_if_present(var) var ? var : "" end
And then use it like this (in the view):
<%= print_if_present(your_var) %>
If the var is nil, it just prints nothing without raising an exception.