Subject: | Debug table incorrect when newbies get chains wrong |
Consider this setup
package MyApp::Controller::Foo;
sub args : Chained('/') {}
sub moreargs : Chained('args') {}
1;
Pretend that the actions had stuff in that showed us which one was hit, or something.
The debug table looks like this:
[debug] Loaded Chained actions:
.-------------------------------------+--------------------------------------.
| Path Spec | Private |
+-------------------------------------+--------------------------------------+
| /args/... | /foo/args |
| /args/moreargs/... | /foo/args |
| | => /foo/moreargs |
'-------------------------------------+--------------------------------------'
Anyone familiar with chaining will know that this is wrong and why it is wrong but it is not
caught. Obviously /args/moreargs can never be hit, so it should not show up. I guess this is
mostly a problem for newbies who didn't realise that :Args(n) is a requirement, but a busy debug
table would probably mask this mistake to oldbies as well.