We have this:
<% @shops.each do |shop| %> <%= shop.name %> <% end %>
The code will yield the total res
Change the code in your controller where @shops is being set, or change the above code to @shops.take(20).each.
@shops
@shops.take(20).each