Thanks for the spleing lesson. Those little gems where just late night
lazyness and blury eyes.
The coffee suggestion helped, as did a good nights spleep and a second set of
eyes
In this end I was not fully truthfull as I was doing this
$routes = { timezone =>{ action =>'timezone',
controller=>'select'}};
foreach my $key (keys(%{$routes})){
my $route = $routes->{$key};
my $route_stash = $route->{stash} ;
my $action = $route->{action} || "show" ;
my $controller = $route->{controller} || $key ;
$rapp->route("/$key")->via('GET')->to("$controller#$action",$route_stash);
$rapp->route("/$key/:id")->via('GET')->to("$controller#$action",$route_stash);
}
So I had an extra '$route_stash' going in the actual code.
Seems if I try and pass the '$route_stash' as an udef as the stash param in the
'route' it the resolves for some reason???
this fixes it
my $route_stash = $route->{stash} || {};
Would this be a BUG?????
Thanks guys
Date: Fri, 24 Jan 2014 19:45:22 -0800
From: [email protected]
To: [email protected]
Subject: [Mojolicious] Re: Route Question?
On Friday, January 24, 2014 8:20:58 PM UTC-7, byterock wrote:
but this does not
my $routes = {timesone=>{action =>'detail',
You also misspelled timezone here...
Scott
--
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.
--
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.