<% if @objects.nil? %> <%= render partial: "show_object" %> <% else %> <%= render partial: "show_objects" %> <% end %>