everybody I'm brand new with Ruby on Rails and I need to understand something. I have an instance variable (@users) and I need to loop over it inside an html.erb file a limitated number of times. I already used this:
<% @users.each do |users| %>
<%= do something %>
<%end %>
But I need to limitate it to, let's say, 10 times. What can I do?