March 2008
1 post
Rails Tip: Labels with form_for
If you use “form_for” you may have noticed in Rails 2.0 that there is now a label method to create html label tags: This is great for two reasons: It syncs the label tag’s “for” attribute with the “id” of whatever input field you create. This awesome for standards and accessibility! It will automatically create label text based off the method...
Mar 11th