separate relation list from index page and render it

This commit is contained in:
Rueshyna authored and chris committed 2012-12-04 00:31:46 +08:00
1 parent e143f9a345
commit 5d6dd8cded
2 files changed
+8 -6

No files matched your search

@@ -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 %>
@@ -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>