I have a one-to-many relation between rooms and guests. A room has_many guests, and a guest belongs_to a single room.
I’ve got a basic view for this, where I can show a room with a list of all guests belonging to it. The problem is I can see these relations, but yet can’t add new guests to a room (The ones I see were associated via script/console).
I want to show a room with all its guests and a link that lets me add new guests to it. This link should take me to a list of all “roomless” guests, where I should be able to choose some of these guests and add them to a room.
I don’t know how to do this. Can you help me out?
Thanks a lot for your help.