Why is my 'footer_links' span getting ended early (before my delete button_to) with this:
%p
%br
%span.footer_links
= link_to 'Edit', edit_link_path(@link)
|
= button_to 'Delete', @link, :confirm => 'Are you sure?', :method => :delete
is producing this:
<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>