separate relation list from index page and render it
This commit is contained in:
		
							parent
							
								
									e143f9a345
								
							
						
					
					
						commit
						5d6dd8cded
					
				|  | @ -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> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue