Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by roho (Chancellor)
on Mar 19, 2010 at 21:22 UTC ( #829703=note: print w/replies, xml ) Need Help??


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 (Chancellor) 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."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://829703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2020-02-29 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (128 votes). Check out past polls.

    Notices?