X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F05_Authentication.pod;h=15455c62730de4badd5e1edd3db73dbb08ad68f9;hp=7b187a4a529757ee6c11a6c866f819a0f3c84c94;hb=bd8f28e099f4c3d43b4b5d18bc27b04fbaaa0bb5;hpb=c016427f351a7a08c9d38d5e1bbb092766d5320f diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index 7b187a4..15455c6 100644 --- a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod @@ -166,7 +166,7 @@ C<1;>: # 2) Name of has_many() relationship this many_to_many() is shortcut for # 3) Name of belongs_to() relationship in model class of has_many() above # You must already have the has_many() defined to use a many_to_many(). - __PACKAGE__->many_to_many(roles => 'user_roles', 'role_id'); + __PACKAGE__->many_to_many(roles => 'user_roles', 'role'); The code for this update is obviously very similar to the edits we made to the C and C classes created in @@ -694,7 +694,7 @@ Then run the following command: $ DBIC_TRACE=1 perl -Ilib set_hashed_passwords.pl -We had to use the C<-Ilib> argument to tell perl to look under the +We had to use the C<-Ilib> argument to tell Perl to look under the C directory for our C model. The DBIC_TRACE output should show that the update worked: