has_many polymorphics problems

You need to save Foo before you can assign the polymorph to it. Otherwise, has_many_polymorphs doesn't know which foo_id to assign.