mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #35707 from localhostdotdev/fix-rails-guides-generation-invalid-formats-html
Fix rails guides generation
This commit is contained in:
commit
4c8a333ac1
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue