I want to have some sort of message to be shown
when I have an empty object.
For example when I click on a properties’ gallery
and their are no photos, I want a simple “gallery is empty”
I have managed to do this in the view by doing a crude
<% unless @object.empty? %>
<% else %>
gallery is empty
<% end %>
I am sure rails has a better way to solve this,
can anybody help me?