Last active
December 11, 2015 17:58
-
-
Save moltar/4638073 to your computer and use it in GitHub Desktop.
go go go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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