<% @endpoints.each_with_index do |meth, i| %> <%= yieldall :object => meth, :index => i %> <% end %>