mjbellantoni/formtastic-bootstrap — pull request #78 by nickl- (2013-07-14 07:53:43+00:00)
Title: Fix :wrapper_html :class and :button_html :class options

This appears to fix the options functionality retaining both :wrapper_html and :button_html options without actually wrapping the action in another tag.
Only tested with class and ensured that id also remains but not sure what it does with other options.

Default class is "btn"
:wrapper_html => { :class => "wrapper-option" } is prefixed with the default and results in class="btn wrapper-option"
:button_html => { :class => "button-option" } will specify the whole class value and results in class="button-option"

Tested all these definitions:

```erb
<%= f.actions do %>
<%= f.action :submit, :as => :button, :button_html => { :class => 'btn btn-primary' } %>
<%= f.action :cancel, :as => :link, :button_html => { :class => 'btn btn-danger' } %>
<%= f.action :reset, :as => :input, :button_html => { :class => 'btn btn-warning' } %>
<%= f.action :submit, :as => :button, :wrapper_html => { :class => 'btn-inverse' } %>
<%= f.action :cancel, :as => :link, :wrapper_html => { :class => 'btn-info' } %>
<%= f.action :submit, :as => :input, :wrapper_html => { :class => 'btn-link' } %>
<%= f.action :submit, :as => :button %>
<%= f.action :cancel, :as => :link %>
<%= f.action :submit, :as => :input %>
<%= f.action :submit %>
<%= f.action :cancel %>
<%= f.action :reset %>
<% end %>
```

And found everything to be good.

nJoy!