Rails 2.1 Label
A label method is introduced in Rails 2.1. The following code: [sourcecode language="html"] < % form_for (@post) do |f| %> < %= f.label :title %> #Code truncated for clarity < % end %> [/sourcecode] Would generate the following HTML: [sourcecode language="html"] Title [/sourcecode] If your label contains a css class and if you need another [...]

