Re: [Catalyst] Re: Needs some help with select and Controller::FormBuilder

2008-02-27 Thread Alex Povolotsky
Stephen Sykes wrote: Alex Povolotsky wrote: Hello! I'm trying to make a form with select using Controller::FormBuilder. Code is quite straightforward Why not map directly from your model... $self->formbuilder->field( name => 'ipid', options => [ map { [ $_->ipid, $_->ipa

Re: [Catalyst] Re: Needs some help with select and Controller::FormBuilder

2008-02-27 Thread [EMAIL PROTECTED]
Kieren Diment wrote: On 27 Feb 2008, at 08:21, Stephen Sykes wrote: Alex Povolotsky wrote: Hello! I'm trying to make a form with select using Controller::FormBuilder. Code is quite straightforward === edit.fb === name: server_edit method: post [snip spaghetti] Why not map directly from your

Re: [Catalyst] Re: Needs some help with select and Controller::FormBuilder

2008-02-26 Thread Kieren Diment
On 27 Feb 2008, at 08:21, Stephen Sykes wrote: Alex Povolotsky wrote: Hello! I'm trying to make a form with select using Controller::FormBuilder. Code is quite straightforward === edit.fb === name: server_edit method: post [snip spaghetti] Why not map directly from your model... $self->formb

[Catalyst] Re: Needs some help with select and Controller::FormBuilder

2008-02-26 Thread Stephen Sykes
Alex Povolotsky wrote: Hello! I'm trying to make a form with select using Controller::FormBuilder. Code is quite straightforward === edit.fb === name: server_edit method: post fields: name: label: Server Name required: 1 type: text size: 60