]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/Manual/Beer.pod
small quoting fix
[maypole.git] / lib / Maypole / Manual / Beer.pod
index 39c8462d73c62df54e208576eee27ef42a6c182e..f99e0a2ecd9a9baf5dbd1e946c4f7c3c14b34dfb 100644 (file)
@@ -1,4 +1,8 @@
-=head1 The Beer Database, Twice
+=head1 NAME
+
+Maypole::Manual::Beer - The Beer Database, Twice
+
+=head1 DESCRIPTION
 
 We briefly introduced the "beer database" example in the
 L<Introduction to Maypole|Maypole::Manual::About> chapter, where we
@@ -181,12 +185,15 @@ The equivalent in ordinary C<Class::DBI> would be:
 
        BeerDB::Handpump->has_a(beer => "BeerDB::Beer");
        BeerDB::Handpump->has_a(pub => "BeerDB::Pub");
-       BeerDB::Pub->has_many(beers => [ BeerDB::Handpump => 'beer' ]);
-       BeerDB::Beer->has_many(pubs => [ BeerDB::Handpump => 'pub' ]);
+       BeerDB::Pub->has_many(beers => [ 'BeerDB::Handpump' => 'beer' ]);
+       BeerDB::Beer->has_many(pubs => [ 'BeerDB::Handpump' => 'pub' ]);
 
 Maypole's default templates will use this information to display, for
 instance, a list of a brewery's beers on the brewery view page.
 
+Note the quoting in 'BeerDB::Handpump' => 'beer', if you forget to quote the
+left side when using strict you will get compilation errors.
+
 This is the complete beer database application; Maypole's default templates
 and the actions in the view class do the rest. But what if we want to do a
 little more. How would we begin to extend this application?
@@ -253,5 +260,5 @@ Now when we view a beer, we'll have a list of the pubs that it's on at.
 
 L<Contents|Maypole::Manual>,
 Next L<The Request Cookbook|Maypole::Manual::Request>,
-Previous L<Maypole|Maypole::Manual::Workflow>
+Previous L<Maypole's Request Workflow|Maypole::Manual::Workflow>