$id is irrelevant. As I say, it is the call to model that is failing, not the call to find. find is not being called because it can't be called if model returns undef.
In reply to Re^6: Can't call method "find" on an undefined value
by tobyink
in thread Can't call method "find" on an undefined value
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |