Hi Tobias,

I am still getting the following.

Note: my router is  
 $r->post('/login')->to('sessions#on_user_login_p')->name('do_login');

[2020-05-26 23:47:28.06952] [-19048] [debug] Routing to controller 
"ConvergeAtCommex::Controller::Sessions" and action "on_user_login_p"

[2020-05-26 23:47:28.06985] [-19048] [debug] Action not found in controller


On Friday, 10 January 2020 19:58:55 UTC+5:30, Tobias Oetiker wrote:
>
> I am answering my own questions here ... so it seems I still have to call 
> render_later in the controller to make this work ..
>
> async sub hello ($self) {
>   # Render template "example/welcome.html.ep" with message
>   *$self**->render_later;*
>   await Mojo::Promise->new(sub ($resolve,$fail) {
>       Mojo::IOLoop->timer(3 => sub { 
>           $resolve->();
>       });
>   });
>   $self->render(text => 'hello');
> }
>
>

-- 
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 mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/4a4d2d01-7687-4de6-97b5-2794f53ad996%40googlegroups.com.

Reply via email to