This gem gives the object.to_factory method to give a formatted string version of an ActiveRecord object that can be used by factory_girl
Mark Burns
gem "to_factory", "~> 0.0.3"