]> ruin.nu Git - ndwebbie.git/commitdiff
Update to Catalyst 5.7100 and use $c->visit for start page
authorMichael Andreen <harv@ruin.nu>
Thu, 22 Jan 2009 11:00:36 +0000 (12:00 +0100)
committerMichael Andreen <harv@ruin.nu>
Thu, 22 Jan 2009 11:00:36 +0000 (12:00 +0100)
lib/NDWeb.pm
lib/NDWeb/Controller/Root.pm

index 5e576837521556f65d029a2ff14acb697116d65c..b5fa7e4e52e617eb1770b295f44c7101c0d2d19c 100644 (file)
@@ -49,7 +49,7 @@ __PACKAGE__->config( page_cache => {
        disable_index => 1,
 });
 
-
+__PACKAGE__->config( default_model => 'Model');
 # Start the application
 __PACKAGE__->setup(qw/
        -Debug
index 6099db5805cda9a266914728cc52463f179e3ce1..df700f937cc56e603822e66bff77dd33fd7ca2cc 100644 (file)
@@ -33,7 +33,7 @@ NDWeb::Controller::Root - Root Controller for NDWeb
 sub index : Local Path Args(0) {
        my ( $self, $c ) = @_;
 
-       $c->res->redirect($c->uri_for('/wiki'));
+       $c->visit('/wiki/index');
 }
 
 sub default : Path {