Permalink
Browse files

Supply fullfile name to the generator

  • Loading branch information...
lifo committed Apr 5, 2009
1 parent 32ca9a1 commit 981d20e7521feec15c34ae0beee55f528571e90d
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/rails_guides/generator.rb
@@ -48,7 +48,7 @@ def generate_guide(guide)
if guide =~ /\.erb\.textile/
# Generate the erb pages with textile formatting - e.g. index/authors
- result = view.render(:layout => 'layout', :file => name)
+ result = view.render(:layout => 'layout', :file => guide)
f.write textile(result)
else
body = File.read(File.join(view_path, guide))

0 comments on commit 981d20e

Please sign in to comment.