You may have to use the has_many :through
association instead of has_and_belongs_to_many
.
This way you will be able to create the UserEvent
manually to assign your attributes.
More details on: http://guides.rubyonrails.org/association_basics.html#choosing-between-has-many-through-and-has-and-belongs-to-many