diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-04-05 23:07:38 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-04-05 23:08:03 +0100 |
commit | 981d20e7521feec15c34ae0beee55f528571e90d (patch) | |
tree | d942efc9ec03d426a50e9ebb5daff78727f22598 | |
parent | 32ca9a133837b2fb48d9d751f87043deed129f71 (diff) | |
download | rails-981d20e7521feec15c34ae0beee55f528571e90d.tar.gz rails-981d20e7521feec15c34ae0beee55f528571e90d.tar.bz2 rails-981d20e7521feec15c34ae0beee55f528571e90d.zip |
Supply fullfile name to the generator
-rw-r--r-- | railties/guides/rails_guides/generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index f93282db2e..2a4714b13a 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -48,7 +48,7 @@ module RailsGuides 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)) |