separate relation list from index page and render it
This commit is contained in:
parent
659b3fe494
commit
0011fb8972
|
@ -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>
|
||||
|
|
Reference in New Issue