It was, (not 100% up on WAG2 yet) a W3C WAI accessibility recommendation to nest your form fields (inputs/selects etc) inside your label tags. So they were contained by the label much like you’d put an <img> tag inside an <a> tag to make it a link.
The Rails helpers don’t seem to have much [...]
Following on from my last post, sorry folks a bit more Rails bashing. What happened to convention over configuration and the principle of least surprise?
So to add a plain old class attribute to a form tag using the form_for helper you need to do (notice this time we’re declaring the actual html options with the [...]