stouset / twitter_bootstrap_form_for

A Rails FormBuilder DSL for generating Twitter Bootstrap forms
https://github.com/stouset/twitter_bootstrap_form_for
MIT License
409 stars 110 forks source link

link_to styled as button renders inline in form actions block, button_to does not. #37

Closed blt closed 12 years ago

blt commented 12 years ago

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 12 years ago

Closing this as I'm planning to merge in the bootstrap-2.0 branch. Please reopen if this branch does not fix the issue.