I have a habtm relationship between User and Activity
when I create a new Activity why do I have to manually set the foreign key user_id in the activity table???
@activity = Activity.new(params[:activity])
= self.current_user.id #why is this necessary??? but I guess rails can’t magically know what I mean by user??? can it?
@activity.users << User.find_by_id(self.current_user.id