sub translate_to :Chained('object') :PathPart('to') :Args(1) {
my ($self, $c, $to) = @_;
my $object = $c->stash->{object};
+ unless ($object->can_translate_to($to)) {
+ $c->detach('/error_404');
+ }
$c->stash(
result => $object->translated_to($to)
);