1. This will work only as

my $r = $self->routes;
$r->get('/manager/period/days')      ->to('manager#days');
$r->get('/manager/period/days/:date')->to('manager#period_days');

First short path, then more long, and more long.

2. You must have controller Manager and subs 'days' and 'period_days'
 to('manager#days')== to(controller=>'Manager', action=>'days')

3. You must have templates 'days' and 'period_days' in folder 
~/templates/manager/
Or your subs must render other templates. 
For example you use one basic template 'manager.html.ep' 
sub days {
   my $self = shift;
   ....
   $self->render('manager');
}

If you use 
sub days {
   my $self = shift;
   ....
   $self->render();
}
you must have template  ~/templates/manager/days.html.ep
Как-то так

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to