Is there any way to control the ordering of the error messages in the
output of error_messages_for()?
I want to make the error messages match the order of the form elements
in my form, and although the validates_presence_of directive has these
attributes in that order, they still show up in seemingly random order.
Is there any way to control the ordering of the error messages in the
output of error_messages_for()?
At the end of the day the errors are stored in a hash and thus with no
guarenteed order. This might be a good time to replace
error_messages_for with code of your own (if you poke inside the
source for it you'll see that it's pretty simple).