new type fixed

This commit is contained in:
harrybomrah authored and chris committed 2012-12-04 00:31:46 +08:00
1 parent 5d6dd8cded
commit 49d1ca6997
5 files changed
+18 -11

No files matched your search

@@ -1,6 +1,6 @@
<% @co_author_relations.each do |co_author_relation| %>
<%# @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>
<td><%= show_form.relation %></td>
<td><%= link_to 'Destroy', desktop_co_author_relation_path(show_form), confirm: 'Are you sure?', method: :delete, :class=>"bt-delete" %></td>
</tr>
<% end %>
<%# end %>
@@ -2,13 +2,15 @@
<%= render 'form' %>
<table>
<table id="co_author_relation_table">
<thead>
<tr>
<th>Relation</th>
<th></th>
<th></th>
</tr>
<%= render 'show_form'%>
</thead>
<tbody>
<%= render :partial => 'show_form', :collection => @co_author_relations %>
</tbody>
</table>