aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-03-22 14:11:58 -0400
committerGitHub <noreply@github.com>2019-03-22 14:11:58 -0400
commit4c8a333ac1278ec49cc78097b1c64d00338c01f2 (patch)
treea44c0e282f518ebd174a4716293d36e63220d17d /guides
parent75f19b5deb02410ea41a934d3bc822cec106fa6c (diff)
parentd4710fc53863879274a4e8163425a96661ce14fe (diff)
downloadrails-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
Diffstat (limited to 'guides')
-rw-r--r--guides/rails_guides/generator.rb2
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(