Skip Menu |

This queue is for tickets about the Catalyst-Manual CPAN distribution.

Report information
The Basics
Id: 48953
Status: resolved
Priority: 0/
Queue: Catalyst-Manual

People
Owner: Nobody in particular
Requestors: kernel [...] pkts.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bad example code
Date: Sun, 23 Aug 2009 16:49:56 -0700
To: bug-Catalyst-Manual [...] rt.cpan.org
From: PF <kernel [...] pkts.ca>
At this point in the catalyst manual, http://www.annocpan.org/~HKCLARK/Catalyst-Manual-5.8000/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod#107 the instructions say to replace the 'hello method', which does not exist. It should say this: sub index :Path :Args(0) { my ( $self, $c ) = @_; # Hello World $c->stash->{template} = 'hello.tt'; } -- PF <kernel@pkts.ca>
Unless I am looking at it wrong, that method was created in the prior section: Add the following subroutine to your C<lib/Hello/Controller/Root.pm> file: sub hello : Global { my ( $self, $c ) = @_; $c->response->body("Hello, World!"); }