forked from bofh/fetsite
26 lines
589 B
Plaintext
26 lines
589 B
Plaintext
<h1>Listing survey_answers</h1>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Choice</th>
|
|
<th>User</th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
<% @survey_answers.each do |survey_answer| %>
|
|
<tr>
|
|
<td><%= survey_answer.choice %></td>
|
|
<td><%= survey_answer.user %></td>
|
|
<td><%= link_to 'Show', survey_answer %></td>
|
|
<td><%= link_to 'Edit', edit_survey_answer_path(survey_answer) %></td>
|
|
<td><%= link_to 'Destroy', survey_answer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<br />
|
|
|
|
<%= link_to 'New Answer', new_survey_answer_path %>
|