<% @users.each_with_index do |user, index| %> <%= index +=1 %> <%= user.name %> <%= link_to "Send Message", "#", class: "btn btn-success btn-xs start-conversation", "data-sid" => current_user.id, "data-rip" => user.id %> <% end %>