link_to styled as button renders inline in form actions block, button_to does not.
Closed this issue · 1 comments
blt commented
If I have a bit of a form that looks like this
<%= f.actions do -%>
<%= f.submit 'Save' %>
<%= button_to 'Delete', dashboard_memobj_path(@memobj), :class => 'btn danger', :method => :delete %>
<% end %>
the 'Save' button will be rendered atop the 'Delete' button. However, if I have
<%= f.actions do -%>
<%= f.submit 'Save' %>
<%= link_to 'Delete', dashboard_memobj_path(@memobj), :class => 'btn danger', :method => :delete %>
<% end %>
The 'Save' button and 'Delete' link--styled as a button--render inline.
stouset commented
Closing this as I'm planning to merge in the bootstrap-2.0 branch. Please reopen if this branch does not fix the issue.