but the same happens with $c->model('Person')->all()<br><br><pre><code class="error"> 30: sub list : Local {<br> 31: my ($self, $c) = @_;<br> 32: <br><strong class="line"> 33: $c->stash->{people} = [$c->model('Person')->all()];<br></strong> 34: <br> 35: $c->stash->{template} = 'people/list.tt2';<br> 36: }</code></pre><br><br>plus the docs have ........ <br><pre>$c->model('MyAppDB::Book')->all<br><b>TIP</b>: You may see the <code>$c->model('MyAppDB::Book')</code> used above written as <code>$c->model('MyAppDB')->resultset('Book)</code>. The two are equivalent.<br></pre>Maybe I should just take a break now for crimbo!!<br><br><br><b><i>Jonathan Rockway <jon@jrock.us></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br>On Mon, 2007-12-24 at 13:13 +0000, Anthony Gardner wrote:<br>> Sorry, missed a bit .........<br>>
<br>> lib/TestApp/Controller/Person.pm<br>> ...<br>> sub list : Local {<br>> my ($self, $c) = @_;<br>> <br>> $c->stash->{people} =<br>> [$c->model('TestAppDB')->resultset('Person')->all()];<br>> <br>> $c->stash->{template} = 'people/list.tt2';<br>> }<br><br>You named your model Person, but you are trying to get at it by calling<br>it TestAppDB.<br><br>Regards,<br>Jonathan Rockway<br><br>_______________________________________________<br>List: Catalyst@lists.scsys.co.uk<br>Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst<br>Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/<br>Dev site: http://dev.catalyst.perl.org/<br></blockquote><br><BR><BR>Disclaimer: Technically, I'm always wrong!!<p> 
<hr size=1>
Yahoo! Answers - Get better answers from someone who knows. <a
href="http://uk.answers.yahoo.com/;_ylc=X3oDMTEydmViNG02BF9TAzIxMTQ3MTcxOTAEc2VjA21haWwEc2xrA3RhZ2xpbmU">Try
it now</a>.