Re: [Mason] submitting and parsing form data

2008-03-10 Thread Daniel Bretoi
Thank you. I had written a similar function already actually. Just wanted to make sure I wasn't missing anything obvious, or worse, was doing something wrong :) On Mar 10, 2008, at 11:10 AM, William Cox wrote: > i have a quick loop that does this to one level only > > foreach ( keys %ARGS

Re: [Mason] submitting and parsing form data

2008-03-10 Thread William Cox
i have a quick loop that does this to one level only foreach ( keys %ARGS ) { /([\d\w]+) \[ ([\d\w]+) \]/x or next; $ARGS{$1}{$2} = delete $ARGS{$_}; } does what i need and it's quick On Mon, Mar 10, 2008 at 12:01 PM, Daniel Bretoi <[EMAIL PROTECTED]> wrote: > > On Mar 10, 2008, at 8:58

Re: [Mason] submitting and parsing form data

2008-03-10 Thread Daniel Bretoi
On Mar 10, 2008, at 8:58 AM, Hans Dieter Pearcey wrote: > On Mon, Mar 10, 2008 at 08:49:56AM -0700, Daniel Bretoi wrote: >> I have something like this: >> >> >> >> >> >> >> And I was hoping to see >> >> $ARGS = { >>'user' => { >>'name' => 'daniel', >>'email' => '[EMAIL PRO

Re: [Mason] submitting and parsing form data

2008-03-10 Thread Hans Dieter Pearcey
On Mon, Mar 10, 2008 at 08:49:56AM -0700, Daniel Bretoi wrote: > I have something like this: > > > > > > > And I was hoping to see > > $ARGS = { > 'user' => { > 'name' => 'daniel', > 'email' => '[EMAIL PROTECTED]', > } > }; That's not how forms work; Rails isn't the

[Mason] submitting and parsing form data

2008-03-10 Thread Daniel Bretoi
I have something like this: And I was hoping to see $ARGS = { 'user' => { 'name' => 'daniel', 'email' => '[EMAIL PROTECTED]', } }; however, all I'm getting is: $ARGS = { 'user[name]' => 'daniel', 'user[email]' => '[EMAIL PROTECTED]', }; what's the