我正在使用 gem 'twitter-bootstrap-rails' 作为 rails bootstrap
我在 Rails 代码页面上有几个链接
<td><%= link_to 'Destroy', swimming_classschedule, method: :delete, data: { confirm: 'Are you sure?' } %></td>
<li> <%= link_to "Logout", destroy_user_session_path, method: :delete, :class => 'navbar-link' %> </li>
html代码:
<a href="/users/sign_out" class="navbar-link" data-method="delete" rel="nofollow">Logout</a>
<td><a href="/swimming/students/1" data-confirm="Are you sure?" data-method="delete" rel="nofollow">Destroy</a></td>
<td><a href="/swimming/students/3" data-confirm="Are you sure?" data-method="delete" rel="nofollow">Destroy</a></td>
每当我单击删除学生时,我都会退出。我完全糊涂了