separate relation list from index page and render it

This commit is contained in:
Rueshyna 2012-12-03 15:00:55 +08:00
parent 659b3fe494
commit 0011fb8972
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> <th></th>
</tr> </tr>
<% @co_author_relations.each do |co_author_relation| %> <%= render 'show_form'%>
<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 %>
</table> </table>