[html-formfu] HTML::FormFu::Elements::Repeatable and DBIx::Class
Benjamin Martin
benjamin at opusvl.com
Fri Nov 20 09:20:32 GMT 2009
Cheers alot for the advice... I should have thought about looking at the
test files! "doh!"
I managed to get it working, turns out I was doing
$form->default_values( $dbix_row ) .. instead of
$form->model->default_values( $dbix_row ).
Thanks again. :)
Carl Franks wrote:
> 2009/11/19 Benjamin Martin <benjamin at opusvl.com>:
>
>> hello,
>>
>> I have been trying to get the HTML::FormFu::Elements::Repeatable to work
>> with a 'has_many' (DBIx::Class) relationship without success. I am yet
>> to find complete working example, just snippets from perldoc .... which
>> I am yet to get going :(
>>
>> Can anyone point me towards a working example?? (or any resource of
>> help/documentation)
>>
>> Many thanks for any help you can give me :)
>>
>
> Hi,
>
> In the HTML-FormFu-Model-DBIC distribution, see the test files:
> t/default_values/has_many_repeatable.t
> t/default_values/has_many_repeatable.yml
> t/create/has_many_repeatable.t
> t/create/has_many_repeatable.yml
>
> There's also lots more has_many* test files there for the other features.
>
> If you want to inspect the DBIC schema files, they're at:
> t/lib/MySchema.pm
> t/lib/MySchema/*.pm
>
> Cheers,
> Carl
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>
>
More information about the HTML-FormFu
mailing list