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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
Ph: 617.314.6687
Fx: 617.390.7824
IM: panJimS (AIM)

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/


_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to