>
> update and create are the same method in Model::HashRef. Both accept no
> arguments but return a hashref. So your example should look something like
> this:
>
>
>  sub update :Chained('root') Args(0) FormConfig {
>>    my ( $self, $c ) = @_;
>>
>>    my $form = $c->stash->{ form };
>>    $form->default_model( 'HashRef' );
>>
>>    if($form->submitted_and_valid) {
>>        my $f = $c->stash->{ form }->model->update;
>>    }
>> }
>
>
I tried this as well, and Dumper-ed the result of the update. It comes back
with an empty title field! :)
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to