I have to put something in my .erb template , which uses conditional operator.
In the code below you can see I am checking the conditional value and printing the same value if its not nil.
<%= (@variable.value.nil?) ? "-" : @variable.value %>
I guess there should be a more shorter way to do this. As it really looks ugly to write same things twice.