7 msgConfiguration of $c->log with Catalyst::Log:...
8 msgInvalid session ids being generated
4 msgCatalyst / dbix-class / mysql / REST job
2 msgStrange UTF16 warning
1 msgWikipedia article improvement?
5 msgFastCGI: incomplete headers (0 bytes) received ...

Basic CRUD Tutorial
\ Albert Vernon Smith (6 May 2008)
. \ Kieren Diment (6 May 2008)
. . \ Albert Vernon Smith (6 May 2008)
. . . \ Albert Vernon Smith (6 May 2008)
. . . . \ J. Shirley (6 May 2008)

2 msgHow to display a single HTML::Widget form field...
7 msgLet's port Twitter to Perl
8 msgCatalyst, utf8 in form element type text
17 msgAnybody who fancies some LWP poking ...
54 msgRFC: Catalyst::Controller::REST::DBIC
1 msgKill the book thread please
2 msgMore Catalyst Template Toolkit examples?
6 msgFw: high school reunion (no subject)
2 msg(no subject)
6 msgUsing URIs for my app in another program
4 msgTutorial
11 msg$row->copy causing exit from controller(!)
14 msgHow to print/display some data in an end action
Subject:Basic CRUD Tutorial
Group:Catalyst
From:Albert Vernon Smith
Date:6 May 2008


 
I'm new to Catalyst, and am working my way through the tutorial. I'm
on the "BasicCRUD" section, and something is not behaving as it
should. I've gotten to the end of the "FORMLESS SUBMISSION" section,
and entering the URL
< http://localhost:3000/books/url_create/TCPIP_Illustrated_Vol-2/5/4>
works as advertised, entering an appropriate record into the database.

However, the link for "Return to list" (coming from the
'create_done.tt2' template) points to itself
(<http://localhost:3000/books/url_create/TCPIP_Illustrated_Vol-2/5/4>)
rather than (<http://localhost:3000/books/list>).

The 'create_done.tt2' template includes:

<a href="[% Catalyst.uri_for('/books/list') %]">Return to list</a></p>

However, this function doesn't seem to be building the appropriate
URI. I'm on Mac OS X 10.5.2, and built Catalyst yesterday from CPAN
using the system Perl.

I can't rule out that I did something silly, but I went through this
twice, and twice got the same issue.

Does anyone know what might be the issue.

Thanks,
-albert

_______________________________________________
List: Catalyst
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst/
Dev site: http://dev.catalyst.perl.org/


© 2004-2008 readlist.com