Displaying 2 results from an estimated 2 matches for "allerror".
Did you mean:
  dllerror
  
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
...xdb241380
	cred = (struct ucred *) 0xc145e900
	waitfor = 2
	p = (struct proc *) 0xc039b3e0
	p = (struct proc *) 0xc039b3e0
	nvp = (struct vnode *) 0xdb240f00
	vp = (struct vnode *) 0xdb241380
	ip = (struct inode *) 0x0
	ump = (struct ufsmount *) 0xc230e400
	fs = (struct fs *) 0xc2356800
	error = 0
	allerror = 0
#11 0xc01a2823 in sync (p=0xc039b3e0, uap=0x0) at /usr/src/sys/kern/vfs_syscalls.c:577
	p = (struct proc *) 0xc039b3e0
	mp = (struct mount *) 0xc230e600
	nmp = (struct mount *) 0x0
	asyncflag = 0
#12 0xc0171b76 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:235
	bp = (struct buf *) 0x...