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

stephen at stephensykes.us stephen at stephensykes.us
Wed Feb 27 08:42:05 GMT 2008


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 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.
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: 
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
Might have some time this weekend to write something. I've been working 
with this module within a fairly large web application at my day job, 
for about 95% of all database management functions. I have some nice 
code sniplets I can post, any of which would be extremely useful to 
those starting out with Catalyst::Controller::FormBuilder.

[stephen]



More information about the Catalyst mailing list