On Wed, May 07, 2014 at 04:23:09PM -0600, Glen wrote:
Create a controller for the action. If you want to create a one-off subroutine, 
route to a callback.

$r->get('/trend/kept')->to(cb => sub { ... });

I was doing something similar before:

$r->get( '/trend/kept' sub { ... } => 'trend' );

It worked, but now I hope to use the same sub for multiple URL's with different
parameters. And that leads me to the error.

--
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca

--
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/d/optout.

Reply via email to