Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: catalyst book rockway

by jrockway (Acolyte)
on Jan 18, 2008 at 19:46 UTC ( [id://663127]=note: print w/replies, xml ) Need Help??


in reply to catalyst book rockway

Hi. Change $c->form to $self->formbuilder and form.render to FormBuilder.render (in the TT templates). I keep prodding the publisher to put this in the errata section, but to no avail thusfar.

Replies are listed 'Best First'.
Re^2: catalyst book rockway
by wkittekat (Initiate) on Jan 19, 2008 at 22:16 UTC
    Thanks, at least the runtime exception is gone, but instead of the expected form I can see only a header line containing "Edit a person".
    Is it possible to get a working tarball of this application? the publishers web page offers only code snippets in .doc files!!!
Re^2: catalyst book rockway
by adiabat (Acolyte) on Jan 19, 2008 at 05:00 UTC

    Could you put your up-to-date errata file up on your own site until the publisher gets around to making it available from theirs?

Re^2: catalyst book rockway
by Anonymous Monk on Jan 22, 2008 at 14:35 UTC
    THANKS for this reply. I got the same error: error Caught exception in AddressBook::Controller::Person->edit "Can't locate object method "form" via package "AddressBook" at ... --- in all cases I replaced: $c->form to $self->formbuilder and form.render to FormBuilder.render (in the TT templates) --- now the chapter-3 example from the Rockway catalyst book is running fine... Ulf.
      Great - I have had a typo in /root/src/person.tt2:
      Formbuilder.render instead of
      FormBuilder.render
      now the FormBuilder does his job!...
        as [% Formbuilder.render %] is wrong - is there a way check an eventual error message of "Template::Toolkit" within the Catalyst framework?
Re^2: catalyst book rockway
by whyce (Initiate) on Apr 22, 2009 at 09:37 UTC
    I got the same problem. Thanks for the answer

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-04-19 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found