[Catalyst] Catalyst::Manual::Tutorial::CatalystBasics Issues

hkclark at gmail.com hkclark at gmail.com
Tue Jan 16 01:08:40 GMT 2007


Hi Jim,

Thanks for the note.  Yes, that does sound like version issues.  I'll
do some research and see if there is a way to have it work on older
versions, but that can get sticky at time.

Thanks,
Kennedy

On 1/15/07, Jim Spath <jspath at pangeamedia.com> wrote:
> Hi,
>
> I am using Catalyst + DBIx::Class for the first time and was running
> through the tutorial located here:
>
> http://search.cpan.org/~jrockway/Catalyst-Manual-5.700501/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod
>
> I ran into a couple of problems, both having to do with the example
> Controller that lists all of the books.
>
> 1) "$c->model('MyAppDB::Book')->all" failed.
>     "$c->model('MyAppDB')->resultset('Book')->all" worked.
>
>   $c->model('MyAppDB::Book')->all produced the following error message:
>
>   Can't locate object method "all" via package "MyApp::Model::MyAppDB::Book"
>
>   The tutorial says that the two methods should be equivalent.
>
> 2) There was no output until I added $c->forward('MyApp::View::TT'); to
> the controller.
>
> I am running:
> Ubuntu 6.06.1 LTS
> Perl 5.8.7
> Catalyst 5.61
> DBIx::Class 0.07005
> Template 2.14
>
> I'm guessing that the tutorial is assuming a more recent version of
> Catalyst?  The version I am using happens to be the most recent
> available from the Ubuntu package repository.
>
> Thanks!
>
> --
> Jim Spath
> Lead Developer
> Pangea Media
> Em: jspath at pangeamedia.com
> Ph: 617.314.6687
> Fx: 617.390.7824
> IM: panJimS (AIM)
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>



More information about the Catalyst mailing list