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

Kieren Diment diment at gmail.com
Wed Feb 27 06:41:33 GMT 2008


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->formbuilder->field(
>     name     => 'ipid',
>     options  =>
>       [ map { [ $_->ipid, $_->ipaddr ] } $c->model('OurIP')->all ],
> );
>

Any chance you can provide a patch to the documentation for  
Catalyst::Controller::FormBuilder for that please?

By the way, my experience is that sometimes people are reluctant to  
provide documentation because they fear ridicule due to their poor  
writing skills.  Personally I find that if I write any old crap, then  
i can edit it later, and a blank piece of paper is always more  
intimidating than incoherent ramblings.  I promise to edit your  
ramblings if they need it.



More information about the Catalyst mailing list