4 ms·
We removed error_messsages_for because it wrapped up something really simple (iterating over error messages) into a something that seemed magic and hard and was
by dhh 17y ago
We removed error_messsages_for because it wrapped up something really simple (iterating over error messages) into a something that seemed magic and hard and was impossible to change.
It also violated a core Rails statute of never dictating look'n'feel of the end application. The error_messages_for included both fixed copywriting, HTML structure, and relied on CSS. Ugh, bad shit.
We've replaced the output in scaffold with the unfolded iteration. As you'll see, it's incredibly simple.