不能对数据主类别进行删除操作
This commit is contained in:
parent
1f3324e365
commit
69e8969215
|
@ -4,6 +4,7 @@
|
||||||
<table class="table_center" cellpadding="0" cellspacing="0">
|
<table class="table_center" cellpadding="0" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<th>类别名称</th>
|
<th>类别名称</th>
|
||||||
|
<th>添加时间</th>
|
||||||
<th>操作</th>
|
<th>操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -13,7 +14,7 @@
|
||||||
<td><%= format_time main_category.created_at %></td>
|
<td><%= format_time main_category.created_at %></td>
|
||||||
<td>
|
<td>
|
||||||
<%= link_to '编辑', edit_main_category_path(main_category) %>
|
<%= link_to '编辑', edit_main_category_path(main_category) %>
|
||||||
<%= link_to '删除', main_category, method: :delete, data: { confirm: '确定删除这个数据类别吗?' } %>
|
<%#= link_to '删除', main_category, method: :delete, data: { confirm: '确定删除这个数据类别吗?' } %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue