Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Basically, this works:
  2.  
  3. my $foo = $r->bridge('/foo')
  4. my $f2 = $foo->get('/')->to('controller' => 'example', action => 'foo');
  5.  
  6. But this doesn't:
  7.  
  8. my $foo = $r->bridge('/foo')->to(controller => 'example');
  9. my $f2 = $foo->get('/')->to('controller' => 'example', action => 'foo');
  10.  
  11. Why does tacking on the ->to to the bridge (in an attempt to default the controller to 'example') cause the route to fail? Output of morbo routes is identical.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement