diff --git a/lib/cucumber/factory.rb b/lib/cucumber/factory.rb
index <HASH>..<HASH> 100644
--- a/lib/cucumber/factory.rb
+++ b/lib/cucumber/factory.rb
@@ -106,7 +106,7 @@ module Cucumber
       end
 
       def factory_girl_factory_name(name)
-        name.to_s.underscore.to_sym
+        name.to_s.underscore.gsub('/', '_').to_sym
       end
       
       def create_record(model_class, variant, attributes)
diff --git a/lib/cucumber_factory/version.rb b/lib/cucumber_factory/version.rb
index <HASH>..<HASH> 100644
--- a/lib/cucumber_factory/version.rb
+++ b/lib/cucumber_factory/version.rb
@@ -1,3 +1,3 @@
 module CucumberFactory
-  VERSION = '1.8.5'
+  VERSION = '1.8.6'
 end
diff --git a/spec/factory_spec.rb b/spec/factory_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/factory_spec.rb
+++ b/spec/factory_spec.rb
@@ -17,4 +17,13 @@ describe Cucumber::Factory do
 
   end
 
+  describe 'factory_girl_factory_name' do
+
+    it "should underscorize everything" do
+      subject.send(:factory_girl_factory_name, People::Actor).should == :people_actor
+      subject.send(:factory_girl_factory_name, JobOffer).should == :job_offer
+    end
+
+  end
+
 end
better factory girl support for namespaced models