Displaying 1 result from an estimated 1 matches for "on_lookup_failur".
Did you mean:
on_lookup_failure
2006 Jan 24
2
NULL id''s / invalid references
Hi,
could you suggest me how to handle this in a proper way? I have a table
which has
othertable_id column (relationship is belongs_to) Problem is, that
sometimes there is a NULL value and table.othertable.foo returns an
error... what should I do about it? change something in model? in view?
or just add "unknown" row to othertable and update table.othertable_id
with id of this