Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= @objects.count if @objects %>
- <%= @objects.count if @objects then "nothing found" %>
- <% if @objects %>
- <%= @objects.count %>
- <% else %>
- nothing found
- <% end %>
- <%= count_for(@object) %>
- <%= "nothing found" unless @objects.try(:length) || 0 > 1 %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement