Error management on models

Hi,

I’ve limited my error_messages_for method to just spit out the first
error it has in the object but the problem is that the first error is
not always the one that gets printed out. If I have a form, and if
there were multiple erorrs, then I’m finding that the first logical
error on the form is not being printed out. I would like to always just
print out the first logical error. What sequencing does rails follow
while adding errors into the errors object. How can I accomplish this.
I definitely don’t want all the errors printed out.

Thanks.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs