in reply to Re: Catalyst by the Book- The Train Wreck Continues
in thread Catalyst by the Book- The Train Wreck Continues

This was bugging me, so I created a fresh Catalyst skeleton and tested after applying each mod in the book. The problem was simply errors in the text of the book, not Catalyst version differences, etc. An errate list for this book is definitely in order if people are to use it effectively.

FWIW, the invalid text causing all my module location error messages is on p. 22 of the book, as shown in the "before" and "after" lines below:

Before:
__PACKAGE__->has_many(
addresses => 'AddressBook::Schema::AddressDB::Addresses',

After:
__PACKAGE__->has_many(
addresses => 'AddressBook::Schema::AddressDB::Result::Address',



Before:
__PACKAGE__->belongs_to(
person => 'AddressBook::Schema::AddressDB::People',

After:
__PACKAGE__->belongs_to(
person => 'AddressBook::Schema::AddressDB::Result::People',

"Its not how hard you work, its how much you get done."

  • Comment on Re^2: Catalyst by the Book- The Train Wreck Continues

Replies are listed 'Best First'.
Re^3: Catalyst by the Book- The Train Wreck Continues
by roho (Bishop) on Mar 20, 2010 at 20:55 UTC
    I stand corrected. This problem _is_ related to versions. After locating the book's errata at http://wiki.catalystframework.org/wiki/thebookerrata, one of the entries pointed out that version 0.22 and later of "Catalyst::Model::DBIC::Schema" add '::Result' to the generated classes. I wish I had found this errata page earlier. It would have saved much time and frustration.

    "Its not how hard you work, its how much you get done."