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.


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to