aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides
diff options
context:
space:
mode:
authorlocalhostdotdev <root@localhost.dev>2019-03-22 18:45:22 +0100
committerlocalhostdotdev <root@localhost.dev>2019-03-22 18:45:22 +0100
commitd4710fc53863879274a4e8163425a96661ce14fe (patch)
treea4df4450c965ad64fb3e182e21ceed3335e0fbc7 /guides/rails_guides
parentc11d115fa3c58ec6bde5e9799673cee381d22d47 (diff)
downloadrails-d4710fc53863879274a4e8163425a96661ce14fe.tar.gz
rails-d4710fc53863879274a4e8163425a96661ce14fe.tar.bz2
rails-d4710fc53863879274a4e8163425a96661ce14fe.zip
Fix rails guides generation
Was getting `formats=': Invalid formats: "html"
Diffstat (limited to 'guides/rails_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(