I'm looking how to get a custom index of my ecto members in html show - generated from a resource mix phx.gen.html The goal is that every new post should have number. I have tried to create that function in PostsController, but I couldnt sort it out.
<%= for post <- @posts do %>
<%= post.title %>
<% end %>