mjbellantoni / formtastic-bootstrap

Formtastic form builder to generate Twitter Bootstrap-friendly markup.
MIT License
443 stars 218 forks source link

Enable :hint for boolean inputs #70

Closed sirn closed 11 years ago

sirn commented 11 years ago

Hi,

In one of my project I've found the need of adding hint to boolean field (sounds weird, I know) but it seems like :hint doesn't work with boolean field and found out it's because boolean input field doesn't call hint_html. I've updated boolean input class and make it call hint_html in similar way to bootstrap_wrapping in this pull request.

sodabrew commented 11 years ago

Looks good! Could you undo the whitespace removal from the test file? I prefer not to mix whitespace changes with code changes.

sirn commented 11 years ago

Oops, sorry! I have my diff set to ignore whitespace and did not notice the whitespace changes. I've force-pushed my local branch and remove all the whitespace changes already.

sodabrew commented 11 years ago

Fixed in formtastic-bootstrap 2.1.2. Thank you!