posted 9 years ago
I've got two tables, Users and Statuses. I want the user_id index from Statuses to be the id from Users. Right now, I can create a new user from a form and all records are created correctly. When I try to create a new status for that user in the new status form, by putting the id number in the user_id field, and some inane comment in the content field, only the id and content records are created for Status, and user_id is nil. I can't figure out why! Here are the rb files for each:
Can somebody tell me what I've done wrong? I've been staring at this for so long it is starting to make no sense.