[Rails-core] Nested validations

2006-01-27 Thread Norman Timmler
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. validates_presence_of :email_address, :message => 'Give me a

Re: [Rails-core] How should we do away with the rubysess white page of death?

2006-01-27 Thread Duane Johnson
On Jan 26, 2006, at 2:42 PM, David Heinemeier Hansson wrote: Option #1: Add a "tmp" folder to the Rails app directory structure and store session files in "#{RAILS_ROOT}/tmp". If each app has its own tmp folder, we could instruct it do something like this inside of the Rails initializer:

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

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] How should we do away with the rubysess white page of death?

2006-01-27 Thread James Adam
I'll take a stab at it this weekend. On 1/27/06, Duane Johnson <[EMAIL PROTECTED]> wrote: > > Also, please someone do investigate #3474. I'd really like to declare > > a death to white screens in 1.1. > > Does anyone feel qualified to look at this? I can take a look, and > see what I can do. Any

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 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

[Rails-core] Re: RFC ActionPack requiring ActiveRecord fixtures

2006-01-27 Thread Kevin Clark
No one responded so I implemented fixtures for ActionPack. You can now use ActiveRecordTestRunner to assist in the loading of the database and fixture files (via argument) and it will load the fixture files and .ymls within the actionpack/test/fixtures directory. I'd just like to say how frustrati