[Catalyst-commits] r10112 - Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial

kiffin at dev.catalyst.perl.org kiffin at dev.catalyst.perl.org
Wed May 13 17:12:55 GMT 2009


Author: kiffin
Date: 2009-05-13 17:12:55 +0000 (Wed, 13 May 2009)
New Revision: 10112

Modified:
   Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod
Log:
For create_done.tt2 template need book.author singular to work.


Modified: Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod
===================================================================
--- Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod	2009-05-13 16:30:50 UTC (rev 10111)
+++ Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod	2009-05-13 17:12:55 UTC (rev 10112)
@@ -153,8 +153,8 @@
 
     [% # Output the last name of the first author.  This is complicated by an    -%]
     [% # issue in TT 2.15 where blessed hash objects are not handled right.      -%]
-    [% # First, fetch 'book.authors' from the DB once.                           -%]
-    [% authors = book.authors %]
+    [% # First, fetch 'book.author' from the DB once.                           -%]
+    [% authors = book.author %]
     [% # Now use IF statements to test if 'authors.first' is "working". If so,   -%]
     [% # we use it.  Otherwise we use a hack that seems to keep TT 2.15 happy.   -%]
     by '[% authors.first.last_name IF authors.first;




More information about the Catalyst-commits mailing list