pusewicz/twitter-bootstrap-markup-rails — pull request #3 by djabbour (2012-04-05 01:21:27+00:00)
Title: Add support for buttons and dropdowns

I have added some support for buttons and dropdowns. Usage is documented in the new button_helpers file.

In order to accomplish the button dropdown, I had to do a little metaprogramming. You'll notice the new "HelperCollection." This is a collection of method calls to any rails helpers. Since a button group is essential a group of various types of objects (a button followed by links), I implemented it as a block that takes a series of method calls. This is quite elegant I think, for instance:

```ruby
bootstrap_button_dropdown do |b|
b.bootstrap_button "Button Title", "#"
b.link_to "First Dropdown Item", @item
b.link_to "Second Dropdown Item", @item2
end
```

Also note I am submitting future pull requests from my company, Inigral, rather than my personal github. But it's still me, @djabbour!