Skip to content

Instantly share code, notes, and snippets.

@scottmagdalein
Created July 5, 2012 18:36
Show Gist options
  • Save scottmagdalein/3055561 to your computer and use it in GitHub Desktop.
Save scottmagdalein/3055561 to your computer and use it in GitHub Desktop.
index of applicants by name
</table>
<hr/>
<h1>Listing applicants</h1>
<table>
<tr>
<th>Name</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @position.applicants.each do |applicant| %>
<tr>
<td><%= link_to 'Show', position_applicant_path(@position, @applicant) %></td>
<td><%= link_to 'Edit', edit_position_applicant_path(@position, @applicant) %></td>
<td><%= link_to 'Destroy', applicant, confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment