为什么我的“footer_links”跨度提前结束(在我的删除 button_to 之前):
%p
%br
%span.footer_links
= link_to 'Edit', edit_link_path(@link)
|
= button_to 'Delete', @link, :confirm => 'Are you sure?', :method => :delete
正在生产这个:
<p>
<br/>
<span class="footer_links">
<a href="/links/354/edit">
<a href="/links/354/edit">
|
</span>
</p>
<form method="post" action="/links/354" class="button_to">
<div>
<input name="_method" type="hidden" value="delete"/>
<input data-confirm="Are you sure?" type="submit" value="Delete"/>
<input name="authenticity_token" type="hidden" value="MvN6K03y5WcqSZRt4Au3zj+xsKhfZ9EEtkf2M7YCGhk="/>
</div>
</form>