fixed co-author relation bug....

This commit is contained in:
Rueshyna committed 2012-12-05 14:51:12 +08:00
1 parent 4ebbd7cb5a
commit 00c8bca957
4 files changed
+15 -12

No files matched your search

@@ -1,6 +1,4 @@
<%# @co_author_relations.each do |co_author_relation| %>
<tr>
<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>
<td><%= co_author_relation.relation %></td>
<td><%= link_to 'Destroy', desktop_co_author_relation_path(co_author_relation), confirm: 'Are you sure?', method: :delete, :class=>"bt-delete" %></td>
</tr>
<%# end %>
@@ -12,6 +12,8 @@
</tr>
</thead>
<tbody>
<%= render :partial => 'show_form', :collection => @co_author_relations %>
<% @co_author_relations.each do |co_author_relation| %>
<%= render :partial => 'show_form', locals: {:co_author_relation => co_author_relation} %>
<% end %>
</tbody>
</table>