Problem with Insertion

attr_accessor :room_id, :user_id

Don't do this: you are overwriting the accessors that Active Record provides with ones that will stick the values in places Active Record won't find.

Fred