Skip to content
This repository
Browse code

Use mkdir_p so that the output directory is always created.

  • Loading branch information...
commit 6e8356147d6b7f33de42439dd5ca7f92b705367f 1 parent 2928040
Ryan Bigg authored February 08, 2010
2  railties/guides/rails_guides/generator.rb
@@ -11,7 +11,7 @@ def initialize(output = nil)
11 11
 
12 12
       unless ENV["ONLY"]
13 13
         FileUtils.rm_r(@output) if File.directory?(@output)
14  
-        FileUtils.mkdir(@output)
  14
+        FileUtils.mkdir_p(@output)
15 15
       end
16 16
 
17 17
       @view_path = File.join(@guides_dir, "source")

0 notes on commit 6e83561

Please sign in to comment.
Something went wrong with that request. Please try again.