separate relation list from index page and render it

This commit is contained in:
Rueshyna 2012-12-03 15:00:55 +08:00 committed by chris
parent e143f9a345
commit 5d6dd8cded
2 changed files with 8 additions and 6 deletions

View File

@ -0,0 +1,6 @@
<% @co_author_relations.each do |co_author_relation| %>
<tr>
<td><%= co_author_relation.relation %></td>
<td><%= link_to 'Destroy', desktop_co_author_relation_path(co_author_relation), confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>

View File

@ -9,10 +9,6 @@
<th></th>
</tr>
<% @co_author_relations.each do |co_author_relation| %>
<tr>
<td><%= co_author_relation.relation %></td>
<td><%= link_to 'Destroy', desktop_co_author_relation_path(co_author_relation), confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>
<%= render 'show_form'%>
</table>