fix liten typo
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Manual / Tutorial.pod
index bdb2cae..1d620bf 100644 (file)
@@ -475,6 +475,12 @@ The usercreate.tt template looks like this:
 
  <html><head><title>[% c.config.name %]</title></head><body>
  <h1>Create a new user</h1>
+ <h2>Current users are:</h2>
+ <p>
+    [% FOREACH key = c.config.authentication.users.keys %]
+        [% key %]<br/>
+    [% END %]
+ </p>
  <p> [% c.stash.message %] </p>
  <form action="/users/create" method="post">
  <p>User Name: <input type="text" name="username"/></p>
@@ -629,7 +635,7 @@ example another website, or RSS feeds.
 
 If you have or want a database, there are still choices to be made, there are
 several modules about for accessing databases via OO. The best known are
-probably L<Class::DBI> and L<DBIx::Class>. Catalyst supports making models
+probably L<DBIx::Class> and L<Class::DBI>. Catalyst supports making models
 using either of these.  
 
 For a simple example, we will allow our users to store their favourite
@@ -655,7 +661,7 @@ we'll make a I<http://localhost:3000/users/editgreeting> page:
        else {
           my $grtable = $c->model('UserData::Greetings');
           my $record = $grtable->find_or_create(user => $c->user->id);
-          $record->greeting($c->req->params->{greeting};
+          $record->greeting($c->req->params->{greeting});
           $record->update;
           $c->stash->{message} = 'Greeting updated';
        }