mirror of https://github.com/rails/rails
Fix rails guides generation
Was getting `formats=': Invalid formats: "html"
This commit is contained in:
parent
c11d115fa3
commit
d4710fc538
|
@ -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 New Issue