<font size=2 face="sans-serif">I am getting the following error: Caught
exception in dbms::Controller::AccountView->list "Can't call method
"all" on an undefined value at /tmp/catalyst/dbms/script/../lib/dbms/Controller/AccountView.pm
line 7."</font>
<br>
<br><font size=2 face="sans-serif">this is the referenced sub:</font>
<br>
<br><font size=2 face="sans-serif">sub list : Local { </font>
<br><font size=2 face="sans-serif"> my
($self, $c) = @_;</font>
<br><font size=2 face="sans-serif"> $c->stash(accounts
=> $c->model('dbms::ACCOUNT_VIEW')->all);</font>
<br><font size=2 face="sans-serif"> $c->stash(template
=> 'accountview/list.tt2');</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">I have seen quite a few posts about
this error but no real explanations of what is causing the issue. I
created a view in the DB containing the data I need to display on the page.
The error is occurring at this line: $c->stash(accounts =>
$c->model('dbms::ACCOUNT_VIEW')->all); which I have tried several
different things. If I remove the ->all I get no error and my header
row appears. I cannot find anything that tells me specifically what this
should be composed of. Any pointers to help figure this out are appreciated.<br>
</font>
<br><font size=2 face="Arial">Regards</font>
<br>
<br>