sethvargo/bootstrap_forms — pull request #46 by sshaw (2012-06-25 02:29:11+00:00)
Title: Added id option for uneditable_input, minor fixes for form_tag_helpers

Hi, I more or less [ported your lib to Padrino](https://github.com/sshaw/padrino_bootstrap_forms). In the process I made some very minor changes that you might want to incorporate.

I removed several methods form the `FormTagHelpers` module that just didn't make sense in the given context (e.g., `label_tag`, `utf8_enforcer_tag`, `field_set_tag`, ...). I also modified the call to `super` to "work" within the given method.

Given the potentially large overlap between the builder's tests and what's needed to test the tag helpers I intentionally excluded the tests :skull:. I didn't want to do major (possibly unsatisfactory) `shared_examples_for`/`let` -ish surgery when you might have/prefer an alternate approach. I'm going to write specs for them in the padrino port so hopefully we can find an approach that will work for both.

Have you seen [rspec-html-matchers](https://github.com/kucaahbe/rspec-html-matchers)? Though it's missing something like `should only_have_tag(...)` so rouge attribs and elements can sneak by...