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
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
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
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
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
5 matches
Mail list logo