标签:mic height 数据 body let delete alt col 图片
<div class="col-md-12"> <div class="group"> <%= link_to("New group", new_group_path, class: "btn btn-primary pull-right") %> </div> <table class="table table-hover"> <thead> <tr> <td>#</td> <td>Title</td> <td>Description</td> </tr> </thead> <tbody> <% @groups.each do |group| %> <tr> <td>#</td> <td><% link_to(group.title, group_path(group)) %></td> <td><% group.description %></td> <td> <% link_to("Edit", edit_group_path(group), class: "btn btn-sm btn-defalut") %> <% link_to("Delete", group_path(group), class: "btn btn-sm btn-defalut", method: :delete, data: {confirm: "Are you sure?" } ) %> </td> </tr> <% end %> </tbody> </table> </div>
原因1:<%= %>忘记加“=”
原因2:defalut拼写错误
标签:mic height 数据 body let delete alt col 图片
原文地址:https://www.cnblogs.com/wtyqer/p/10798868.html