I have a Code model factory like this:
Factory.define :code do |f| f.value \"code\" f.association :code_type f.association(:codeable, :factory =&
heres what I end up doing...
conf = FactoryGirl.build(:conference) post :create, {:conference => conf.attributes.slice(*conf.class.accessible_attributes) }