diff options
author | timbunce <timbunce@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-03-26 12:19:38 +0000 |
---|---|---|
committer | timbunce <timbunce@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-03-26 12:19:38 +0000 |
commit | 0a0813ddbde37da8fa5268f091c943f3fde3ba32 (patch) | |
tree | 647cf944cb299a05ae9ed4133a69d2123993ad68 /lib/Reaction/Manual | |
parent | 7cabb410e540df1993e7cca3d4bfb5ef634220fa (diff) | |
download | reaction-0a0813ddbde37da8fa5268f091c943f3fde3ba32.tar.gz reaction-0a0813ddbde37da8fa5268f091c943f3fde3ba32.zip |
Minor tweaks to tutorial
Diffstat (limited to 'lib/Reaction/Manual')
-rw-r--r-- | lib/Reaction/Manual/Tutorial.pod | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Reaction/Manual/Tutorial.pod b/lib/Reaction/Manual/Tutorial.pod index 384c77e..38f98f8 100644 --- a/lib/Reaction/Manual/Tutorial.pod +++ b/lib/Reaction/Manual/Tutorial.pod @@ -383,7 +383,11 @@ this we create a simple catalyst model in C<lib/MyApp/Model/DBIC.pm>: This model L<extends|Moose> the L<Catalyst::Model::Reaction::InterfaceModel::DBIC> base class shipped with Reaction. It's configuration must contain the C<im_class> naming our interface -model and the C<db_dsn>. Of course, since this is Catalyst, this can also easily be specified +model and the C<db_dsn>. If you're using a different kind of database then you +may neeb to add config for C<db_user>, C<db_password>, and C<db_params>. +All these get passed to the schema's connect() method. + +Of course, since this is Catalyst, all this can also easily be specified via your application config file under the C<Model::DBIC> key. =head1 BUILDING A SIMPLE CRUD CONTROLLER @@ -419,7 +423,7 @@ As you can see, for the simplest case we don't need any code; we simply configur The C<model_name> is the name of our interface model sans the C<MyApp::Model::> prefix. This means this entry points to C<MyApp::Model::DBIC> in this case. The C<collection_name> is the name of -the collection in the specified interface model. For us, this would be C<Foo>, like the result +the collection in the specified interface model. For us, this would be C<Foo>, to match the result class we created above and want to manage. The C<actions> part of the configuration is not Reaction, but rather Catalyst specific. This |