From: Wilson Bilkovich Date: 2005-12-01T03:14:34+09:00 Subject: Re: How to properly debug? Yeah, or my preferred pattern: unless user.valid? flash[:error] = "Possibly something custom" redirect or render something return end user.save Actually, now that I've written that out, maybe save! and rescue is more compact user.save! rescue WhateverThatExceptionIsCalled => e redirect_somewhere end On 11/30/05, Florian Gro� wrote: > miriamraphael@yahoo.com wrote: > > > I am writing my first rails script and am having lots of trouble doing > > the simplest tasks. > > Right now, I have a form (new.rhtml) and it allows someone to become a > > new user by entering their info (username, password, name, etc). > > Use .save! instead of .save. > > .save returns false on failure, .save! raises an Exception. > > >