Skip to content

Instantly share code, notes, and snippets.

@moltar
Last active December 11, 2015 17:58
Show Gist options
  • Save moltar/4638073 to your computer and use it in GitHub Desktop.
Save moltar/4638073 to your computer and use it in GitHub Desktop.
go go go
sub fetch : Chained('base') PathPart('') CaptureArgs(1) {
my ($self, $c, $company_id) = @_;
## $company_id is undef AFTER ->go
}
sub edit : Chained('fetch') PathPart('edit') Args(0) {
my ($self, $c) = @_;
## ...
}
sub view_POST_error : Private {
my ($self, $c) = @_;
## $c->req->captures HAS value, tested via dump
## none of these produce desirable result
## return $c->go('edit');
## return $c->go('edit', $c->req->captures);
return $c->go('edit', [], $c->req->captures);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment