[html-formfu] HTML::FormFu::Model::DBIC

Dermot paikkos at googlemail.com
Tue Feb 3 16:49:36 GMT 2009


Hi,

I am a bit confused about how to `use HTML::FormFu::Model::DBIC;` My
current implementation is not picking up the correct class methods.


I have:

use parent 'Catalyst::Controller::HTML::FormFu';
use HTML::FormFu::Model::DBIC;

sub add: Local {
...
...
my $user = $c->model('DB::Users')->new_result({});
#       $form->save_to_model($user); # This works
$form->create($user); # This errors with

"...::Controller::Users->add "Can't locate object method "create" via
package "HTML::FormFu"


my config file has:

<Controller::HTML::FormFu>
   <model_stash>
	schema DB
#     schema = DB
   </model_stash>
</Controller::HTML::FormFu>


Sorry if I'm being dim. Can anyone tell me where I am going wrong please?
Dp.



More information about the HTML-FormFu mailing list