diff options
author | localhostdotdev <root@localhost.dev> | 2019-03-22 18:45:22 +0100 |
---|---|---|
committer | localhostdotdev <root@localhost.dev> | 2019-03-22 18:45:22 +0100 |
commit | d4710fc53863879274a4e8163425a96661ce14fe (patch) | |
tree | a4df4450c965ad64fb3e182e21ceed3335e0fbc7 /guides | |
parent | c11d115fa3c58ec6bde5e9799673cee381d22d47 (diff) | |
download | rails-d4710fc53863879274a4e8163425a96661ce14fe.tar.gz rails-d4710fc53863879274a4e8163425a96661ce14fe.tar.bz2 rails-d4710fc53863879274a4e8163425a96661ce14fe.zip |
Fix rails guides generation
Was getting `formats=': Invalid formats: "html"
Diffstat (limited to 'guides')
-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( |