I have table A with foreign key to table B in field b_id. Now I'm trying to make view/control for adding new table A entry. In form I have combo box (via collection_select) that lists all the elements from table B and that is where i intend to get the b_id for new instance of A in the create method for A.
Value of the combo box is set to the id of the desired B instance. But how do I set that value to the new A object's b_id field in th ecreate method? What ever I try, it is always NULL and of course, I get the exception.