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

Alex Povolotsky tarkhil at over.ru
Wed Feb 27 08:47:06 GMT 2008


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, $_->ipaddr ] } $c->model('OurIP')->all ],
> );

I've tried to find out if any data is retrieved at all. Yes, they does. 
Why select isn't filled properly?

Alex.




More information about the Catalyst mailing list