Take a look at my comments at the bottom of the gist:

https://gist.github.com/kraih/2149176#gistcomment-2045769

On Apr 23, 2017 7:55 PM, "iaw4" <[email protected]> wrote:

>
> hi sebastian --- I think I stumbled upon a Mojolyst bug.  simplest example:
>
> #!/usr/bin/env perl
> use lib 'lib';
> use lib '.';
> use Mojolicious::Lite;
> plugin Mojolyst => {controllers => 'Bug::Controller'};
> app->start();
>
>
> but the '/ignored' is not picked up as a route.  '/' and '/index' are.
>
> #!/usr/bin/env perl
> package Bug::Controller::index;
> use Mojolicious::Lite;  ## implied strict, warnings, utf8, 5.10
>
> my $torealhome = sub {
>   my $c = shift;
>   $c->stash( me => "hello" );
>   return $c->render( text => 'it works for '.$c->url_for('current') );
> };
>
> get '/' => $torealhome; ## works
> get '/ignored' => $torealhome;  ## second one always seems to fail ?!
> get '/index' => $torealhome; ## works
>
> 1;
>
>
> or did I mess up (again)?
>
> regards,
>
> /iaw
>
> --
> 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 https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to