I have 2 tables, connected with belongs_to and has_one and everything
works ok until I get one entry in base where I dont have set id of
belongs_to entry. How can I prevent it(except that that all entry has
ids or dont print anithing in view?
this is what I am talking about:
I have customer and it has firm_id
trable firm has id and name
so when I try to print
customer.firm.name I got error.