search for: allerrors

Displaying 2 results from an estimated 2 matches for "allerrors".

2006 Aug 07
0
Capturing Validation Errors from Nested Model Creation..
...rap these both in a transaction, however, if any one of the contacts fails the validation of the contact model, it will fling up a validation error. So, what is the best way to capture this error and return it to the page for display ? I thought of trying Booking.transaction do @allerrors = [] contact = Contact.new(:first_name => params["contact"]["first_name"]) if not contact.valid?() then contact.errors.each {|attr| @allerrors.push(attr) } end # other stuff goes here if @allerrors.empty? and @booking.save then...
2003 Oct 01
1
4.9 RC1 (i386) mplayer induced panic
All: I cvsup'ed earlier this evening and am still able to reproduce this panic at will. Command line, panic backtrace, dmesg, ldd output, and mplayer version follow. If more information is needed, just let me know. % mplayer foo.mov [a quicktime file] [plays for awhile, and then panics] # gdb -k -s /usr/obj/usr/src/sys/LICHEN/kernel.debug -e /var/crash/kernel.2 -c /var/crash/vmcore.2