diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-03-22 14:11:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-22 14:11:58 -0400 |
commit | 4c8a333ac1278ec49cc78097b1c64d00338c01f2 (patch) | |
tree | a44c0e282f518ebd174a4716293d36e63220d17d | |
parent | 75f19b5deb02410ea41a934d3bc822cec106fa6c (diff) | |
parent | d4710fc53863879274a4e8163425a96661ce14fe (diff) | |
download | rails-4c8a333ac1278ec49cc78097b1c64d00338c01f2.tar.gz rails-4c8a333ac1278ec49cc78097b1c64d00338c01f2.tar.bz2 rails-4c8a333ac1278ec49cc78097b1c64d00338c01f2.zip |
Merge pull request #35707 from localhostdotdev/fix-rails-guides-generation-invalid-formats-html
Fix rails guides generation
-rw-r--r-- | guides/rails_guides/generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/rails_guides/generator.rb b/guides/rails_guides/generator.rb index c3b77aa7bb..7d4a15962c 100644 --- a/guides/rails_guides/generator.rb +++ b/guides/rails_guides/generator.rb @@ -164,7 +164,7 @@ module RailsGuides # Generate the special pages like the home. # Passing a template handler in the template name is deprecated. So pass the file name without the extension. - result = view.render(layout: layout, formats: [$1], file: $`) + result = view.render(layout: layout, formats: [$1.to_sym], file: $`) else body = File.read("#{@source_dir}/#{guide}") result = RailsGuides::Markdown.new( |