提交 d4710fc5 编写于 作者: L localhostdotdev

Fix rails guides generation

Was getting `formats=': Invalid formats: "html"
上级 c11d115f
......@@ -164,7 +164,7 @@ def generate_guide(guide, output_file)
# 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(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册