Question: How to update heap size in tomcat linux container using dockerfile

Answer: 
Simply, you can check `@users` value:

```
<% if @uses.present? %>
  <% @users.each_with_index do |index| %>
      <tr>
        ...
      </tr>
  <% end %>
<% end %>

```

Or give `@users` a value if its `nil`:

```
# In controller:
@users = User.where(...) || []

```

Hope it helps.
First of all `each_with_index` iterate over two arguments one is index and second is array object
so here your syntax should be like this: -

```
  <% unless @users.blank?%>
    <%@users.each_with_index do |user, index|%>
      <%= index +=1 %>
      <%=user.name%>
      #.... and so on
    <%end%>
  <%end%>

```

make sure that `@users` are defined in your action