Skip Menu |

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

Report information
The Basics
Id: 102524
Status: new
Priority: 0/
Queue: Catalyst-Manual

People
Owner: Nobody in particular
Requestors: jackchallen [...] gmail.com
Cc:
AdminCc:

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



Subject: Catalyst::Manual::Tutorial::05_Authentication references non-existent $id
Date: Thu, 5 Mar 2015 11:12:11 +0000
To: bug-Catalyst-Manual [...] rt.cpan.org
From: Jack Challen <jackchallen [...] gmail.com>
Hi, (DISCLAIMER: I'm not working from purely verbatim code; I'm cut-n-pasting into a very, very similar environment. I'm still pretty sure the bug in the docs exist) In Catalyst::Manual::Tutorial::05_Authentication there's a call to set the status_msg in the delete() sub: $c->response->redirect($c->uri_for($self->action_for('list'), {mid => $c->set_status_msg("Deleted book $id")})); That doesn't work for me as $id isn't declared. I fixed it by doing: my $id = $c->stash->{object}->id; above the code cheers jack