<%= bs5_carousel(controls: true) do |c| %> <% c.item do %> <%= image_tag 'https://picsum.photos/800/400?random=1' %> <% end %> <% c.item do %> <%= image_tag 'https://picsum.photos/800/400?random=2' %> <% end %> <% c.item do %> <%= image_tag 'https://picsum.photos/800/400?random=3' %> <% end %> <% end %>