Ruby on Rails:
I’d like the
to render a form for every user row displayed by
I know that I’ll need to embed the former line in the latter somehow, perhaps with an “each…do” statement, but I’m having trouble figuring out the right syntax. Thanks!
<% provide(:title, 'All users') %>
<h1>All users</h1>
<%= will_paginate %>
<ul class="users">
<li><%= render @users %></li>
<li><%= render 'shared/intro_form' %></li>
</ul>
<%= will_paginate %>
http://guides.rubyonrails.org/layouts_and_rendering.html
3.4.5 Rendering Collections