I know we can use error_messages_for to display the error messages for a form but I was wondering if I could grab the error messages and do custom things with them? If so where are they kept? I think they are kept in @errors? Is their an easy way to output the contents of an object out to the webrowser for quick inspection and testing? Thanks guys!
John Baku <john-ZmZq5rsag0HE8+nOCYBGPQ@public.gmane.org> writes:> I know we can use error_messages_for to display the error messages > for a form but I was wondering if I could grab the error messages and > do custom things with them? If so where are they kept?They are in @object.errors -- doug-jGAhs73c5XxeoWH0uzbU5w@public.gmane.org