Re: [Rails-core] Nested validations

2006-01-28 Thread Norman Timmler
Am Freitag, den 27.01.2006, 18:11 -0500 schrieb Francois Beausoleil: > 2006/1/27, Norman Timmler <[EMAIL PROTECTED]>: > > validates_presence_of :email_address, :message => 'Give me an address!' > > validates_format_of :email_address, :with => /[EMAIL PROTECTED],}/, > > :message

Re: [Rails-core] Nested validations

2006-01-27 Thread Francois Beausoleil
Hi ! 2006/1/27, Norman Timmler <[EMAIL PROTECTED]>: > validates_presence_of :email_address, :message => 'Give me an address!' > validates_format_of :email_address, :with => /[EMAIL PROTECTED],}/, > :message => 'Something's wrong with your address!' In this specific case, could

Re: [Rails-core] Nested validations

2006-01-27 Thread Norman Timmler
Am Freitag, den 27.01.2006, 08:21 -0800 schrieb David Goodlad: > Seconded! > > In fact, I think this would be an interesting project for me; unless > someone else is working on this already (Norman?), I'd love to try my > hand at it. It was just an idea. Go ahead Dave! -- Norman Timmler http:/

Re: [Rails-core] Nested validations

2006-01-27 Thread David Goodlad
On 1/27/06, Duane Johnson <[EMAIL PROTECTED]> wrote: > > On Jan 27, 2006, at 9:03 AM, Norman Timmler wrote: > > > Today i came to point where nested validation could make my code more > > DRY. My question is, if anything like this planed? > > > > Example: > > > > Maybe you only want to display diff

Re: [Rails-core] Nested validations

2006-01-27 Thread Duane Johnson
On Jan 27, 2006, at 9:03 AM, Norman Timmler wrote: Today i came to point where nested validation could make my code more DRY. My question is, if anything like this planed? Example: Maybe you only want to display different error messages if an attribute is blank or has the wrong format. va